pub struct TreeNode {
pub value: NodeInfos,
pub index: usize,
pub left: usize,
pub right: usize,
}Expand description
A node of a Tree arena. 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: usizeArena index of the left child (x[feature] <= split).
right: usizeArena index of the right child.
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