#[repr(u8)]
pub enum ItemTreeNode {
    Item {
        is_accessible: bool,
        children_count: u32,
        children_index: u32,
        parent_index: u32,
        item_array_index: u32,
    },
    DynamicTree {
        index: usize,
        parent_index: u32,
    },
}
Expand description

The item tree is an array of ItemTreeNode representing a static tree of items within a component.

Variants§

§

Item

Fields

§is_accessible: bool

True when the item has accessibility properties attached

§children_count: u32

number of children

§children_index: u32

index of the first children within the item tree

§parent_index: u32

The index of the parent item (not valid for the root)

§item_array_index: u32

The index in the extra item_array

Static item

§

DynamicTree

Fields

§index: usize

the index which is passed in the visit_dynamic callback.

§parent_index: u32

The index of the parent item (not valid for the root)

A placeholder for many instance of item in their own component which are instantiated according to a model.

Implementations§

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.