pub struct LayoutTree {
pub style_map: Styles,
pub layout_map: SecondaryMap<TreeKey, LayoutResult>,
pub nodes: SlotMap<TreeKey, ()>,
pub tree: SlotTreeStorage,
pub dirty: LayerDirty<TreeKey>,
pub node_states: SecondaryMap<TreeKey, INode>,
}Fields§
§style_map: Styles§layout_map: SecondaryMap<TreeKey, LayoutResult>§nodes: SlotMap<TreeKey, ()>§tree: SlotTreeStorage§dirty: LayerDirty<TreeKey>§node_states: SecondaryMap<TreeKey, INode>Implementations§
Source§impl LayoutTree
impl LayoutTree
pub fn create_node(&mut self) -> TreeKey
pub fn get_layout(&self, key: TreeKey) -> Option<&LayoutResult>
pub fn insert( &mut self, id: TreeKey, parent: TreeKey, brother: TreeKey, insert: InsertType, s: Style, )
pub fn set_style(&mut self, id: TreeKey, s: Style)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutTree
impl RefUnwindSafe for LayoutTree
impl Send for LayoutTree
impl Sync for LayoutTree
impl Unpin for LayoutTree
impl UnwindSafe for LayoutTree
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