AccessorBinding
struct · ferroui-controls-treedatagrid · v0.5.0
struct AccessorBinding<M: TreeModel, V: Clone + 'static>
A binding of the value an Accessor reads from a model: the reference's
TypedBindingExpression<TModel, TValue> instantiated for a cell (InstanceForCell).
Members
new
fn new(accessor: Accessor<M, V>, root: Option<Rc<M>>) -> Rc<Self>
A binding of accessor on root.
with_observer
fn with_observer(accessor: Accessor<M, V>, observer: Option<Rc<PropertyPathObserver<M>>>, root: Option<Rc<M>>) -> Rc<Self>
A binding of accessor on root that follows the path with observer, compiled once
for a column and shared by its cells.
root
fn root(self: &Self) -> Option<Rc<M>>
The model the binding reads.
accessor
fn accessor(self: &Self) -> &Accessor<M, V>
The accessor of the binding.
value
fn value(self: &Self) -> Option<V>
The current value, if the binding has a root (GetResult).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherICellBinding<V>IRetargetableCellBindingDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.