PropValue
enum · ferroui-view · v0.5.0
enum PropValue
The value an element gives a property.
Members
Value
Value(ferroui_base::BoxedValue)
A value, set once. Values compare by value.
Dynamic
Dynamic(std::rc::Rc<dyn Fn() -> ferroui_base::BoxedValue>)
A value computed by a reactive closure: the property is set again whenever what the closure read changes.
Follows
Follows { source: u64, compute: std::rc::Rc<dyn Fn() -> ferroui_base::BoxedValue> }
A value that follows a signal or a memo: as Dynamic, and equal to
another that follows the same source, so that a component that runs
again does not start it again.
TwoWay
TwoWay { get: std::rc::Rc<dyn Fn() -> ferroui_base::BoxedValue>, set: std::rc::Rc<dyn Fn(&dyn Any) -> ()>, source: Option<u64> }
A value that goes both ways: the property follows get, and a change
of the property is given to set.
Element
Element(std::rc::Rc<std::cell::RefCell<Option<Element>>>)
An element, mounted with its parent: the property holds its control
(Content, Tag, a header).
Binding
Binding(std::rc::Rc<dyn BindingBase>)
A binding of the property system (Binding, a path on the data
context, a compiled binding).
TypedElement
TypedElement { element: std::rc::Rc<std::cell::RefCell<Option<Element>>>, wrap: fn(Option<ferroui_base::Ref<ferroui_controls::Control>>) -> ferroui_base::BoxedValue }
An element, mounted with its parent, for a property that holds a
control of a class (context_menu): wrap makes the value of the
property from the control.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeIntoValue<T>IntoValue<Option<T>>FromValue<T>FromValue<Option<T>>IntoProp<T, Value>AnyValueEqBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelClonePartialEqDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.