Skip to main content

ComponentTree

Struct ComponentTree 

Source
pub struct ComponentTree { /* private fields */ }

Implementations§

Source§

impl ComponentTree

Source

pub fn new() -> Self

Source

pub fn begin_render(&self)

Source

pub fn root(&self, id: UiId, type_name: &'static str) -> ComponentId

Source

pub fn positioned_child( &self, parent: ComponentId, callsite: u64, position: usize, type_name: &'static str, ) -> ComponentId

Source

pub fn keyed_child( &self, parent: ComponentId, callsite: u64, key_hash: u64, type_name: &'static str, ) -> ComponentId

Source

pub fn record_hook(&self, id: ComponentId, kind: HookSlotKind)

Source

pub fn finish_component(&self, id: ComponentId)

Source

pub fn begin_component_execution(&self, id: ComponentId) -> bool

Source

pub fn can_reuse<P>(&self, id: ComponentId, props: &P) -> bool
where P: PartialEq + 'static,

Source

pub fn commit_output<P>(&self, id: ComponentId, props: P, output: UiElement)
where P: 'static,

Source

pub fn reuse_output(&self, id: ComponentId) -> UiElement

Source

pub fn abandon_component(&self, id: ComponentId)

Source

pub fn mark_dirty(&self, id: ComponentId) -> bool

Source

pub fn mark_all_dirty(&self)

Source

pub fn is_alive(&self, id: ComponentId) -> bool

Source

pub fn is_dirty(&self, id: ComponentId) -> bool

Source

pub fn end_render(&self) -> Vec<ComponentId>

Source

pub fn abort_render(&self)

Source

pub fn metrics(&self) -> ComponentRuntimeMetrics

Source§

impl ComponentTree

Source

pub fn clear(&self)

Trait Implementations§

Source§

impl Default for ComponentTree

Source§

fn default() -> ComponentTree

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.