pub struct TreeNode {
pub value: NodeInfos,
pub index: usize,
pub left: usize,
pub right: usize,
}Expand description
A node of a Tree. Child indices of 0 mean “no child”.
Fields§
§value: NodeInfosWhat the node tests or predicts.
index: usizeThe node’s own index in the arena.
left: usizeIndex of the child where the tested feature is 0.
right: usizeIndex of the child where the tested feature is 1.
Implementations§
Trait Implementations§
impl Copy for TreeNode
Source§impl<'de> Deserialize<'de> for TreeNode
impl<'de> Deserialize<'de> for TreeNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TreeNode
impl RefUnwindSafe for TreeNode
impl Send for TreeNode
impl Sync for TreeNode
impl Unpin for TreeNode
impl UnsafeUnpin for TreeNode
impl UnwindSafe for TreeNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more