pub struct ComponentTree { /* private fields */ }Implementations§
Source§impl ComponentTree
impl ComponentTree
pub fn new() -> Self
pub fn begin_render(&self)
pub fn root(&self, id: UiId, type_name: &'static str) -> ComponentId
pub fn positioned_child( &self, parent: ComponentId, callsite: u64, position: usize, type_name: &'static str, ) -> ComponentId
pub fn keyed_child( &self, parent: ComponentId, callsite: u64, key_hash: u64, type_name: &'static str, ) -> ComponentId
pub fn record_hook(&self, id: ComponentId, kind: HookSlotKind)
pub fn finish_component(&self, id: ComponentId)
pub fn begin_component_execution(&self, id: ComponentId) -> bool
pub fn can_reuse<P>(&self, id: ComponentId, props: &P) -> boolwhere
P: PartialEq + 'static,
pub fn commit_output<P>(&self, id: ComponentId, props: P, output: UiElement)where
P: 'static,
pub fn reuse_output(&self, id: ComponentId) -> UiElement
pub fn abandon_component(&self, id: ComponentId)
pub fn mark_dirty(&self, id: ComponentId) -> bool
pub fn mark_all_dirty(&self)
pub fn is_alive(&self, id: ComponentId) -> bool
pub fn is_dirty(&self, id: ComponentId) -> bool
pub fn end_render(&self) -> Vec<ComponentId>
pub fn abort_render(&self)
pub fn metrics(&self) -> ComponentRuntimeMetrics
Source§impl ComponentTree
impl ComponentTree
Trait Implementations§
Source§impl Default for ComponentTree
impl Default for ComponentTree
Source§fn default() -> ComponentTree
fn default() -> ComponentTree
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ComponentTree
impl !RefUnwindSafe for ComponentTree
impl !Send for ComponentTree
impl !Sync for ComponentTree
impl !UnwindSafe for ComponentTree
impl Unpin for ComponentTree
impl UnsafeUnpin for ComponentTree
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