ComponentElement
struct · ferroui-view · v0.5.0
struct ComponentElement
A component that runs again: its function runs when it is mounted, again
whenever a signal it read changes or its parent runs again, and what it
returns is patched into the controls it made before (see rerender and
the hooks).
Members
name
name: &'static str
The name of the component, for messages.
type_id
type_id: std::any::TypeId
The identity of the component: a component of another identity at the same place is mounted anew.
key
key: Option<Key>
The key among its siblings.
render
render: std::rc::Rc<dyn Fn() -> Element>
Runs the component with what its parent gave it.
props
props: Option<std::rc::Rc<dyn AnyValueEq>>
What its parent gave it, when the component is memoized: a parent that runs again with equal values does not run it again.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeIntoValue<T>FromValue<T>FromValue<Option<T>>IntoProp<T, Value>Borrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherClone
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.