#[repr(u8)]pub enum ItemTreeNode {
Item {
is_accessible: bool,
children_count: u32,
children_index: u32,
parent_index: u32,
item_array_index: u32,
},
DynamicTree {
index: u32,
parent_index: u32,
},
}
Expand description
The item tree is an array of ItemTreeNode representing a static tree of items within a ItemTree.
Variants§
Item
Static item
Fields
DynamicTree
A placeholder for many instance of item in their own ItemTree which are instantiated according to a model.
Implementations§
Source§impl ItemTreeNode
impl ItemTreeNode
pub fn parent_index(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemTreeNode
impl RefUnwindSafe for ItemTreeNode
impl Send for ItemTreeNode
impl Sync for ItemTreeNode
impl Unpin for ItemTreeNode
impl UnwindSafe for ItemTreeNode
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