IndexerDescriptor
struct · ferroui-base · v0.5.0
struct IndexerDescriptor
Holds a description of a binding for the binding indexer of
FerroObject (FerroObject::indexer and
FerroObject::bind_indexer).
Members
mode
mode: crate::data::BindingMode
The binding mode.
priority
priority: crate::data::BindingPriority
The binding priority.
property
property: Option<&'static crate::FerroProperty>
The source property.
source
source: Option<crate::Ref<crate::FerroObject>>
The source object.
source_observable
source_observable: Option<std::rc::Rc<dyn IObservable<crate::BoxedValue>>>
The source observable. If None, then source.property is used.
new
fn new() -> Self
Creates an empty description.
description
fn description(self: &Self) -> String
A description of the binding.
with_mode
fn with_mode(self: Self, mode: BindingMode) -> Self
Modifies the binding mode.
with_priority
fn with_priority(self: Self, priority: BindingPriority) -> Self
Modifies the binding priority.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedSubscribeGuard<T>ErasedDestructorIntoEitherCloneDefaultNotIObservable<Rc<dyn AnyValue>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.