pub struct IndexerDescriptor {
pub mode: BindingMode,
pub priority: BindingPriority,
pub property: Option<&'static FerroProperty>,
pub source: Option<Ref<FerroObject>>,
pub source_observable: Option<Rc<dyn IObservable<BoxedValue>>>,
}Expand description
Holds a description of a binding for the binding indexer of
FerroObject (FerroObject::indexer and
FerroObject::bind_indexer).
Fields§
§mode: BindingModeThe binding mode.
priority: BindingPriorityThe binding priority.
property: Option<&'static FerroProperty>The source property.
source: Option<Ref<FerroObject>>The source object.
source_observable: Option<Rc<dyn IObservable<BoxedValue>>>The source observable. If None, then source.property is used.
Implementations§
Source§impl IndexerDescriptor
impl IndexerDescriptor
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
A description of the binding.
Sourcepub fn with_mode(self, mode: BindingMode) -> Self
pub fn with_mode(self, mode: BindingMode) -> Self
Modifies the binding mode.
Sourcepub fn with_priority(self, priority: BindingPriority) -> Self
pub fn with_priority(self, priority: BindingPriority) -> Self
Modifies the binding priority.
Trait Implementations§
Source§impl Clone for IndexerDescriptor
impl Clone for IndexerDescriptor
Source§impl Default for IndexerDescriptor
impl Default for IndexerDescriptor
Source§impl IObservable<Rc<dyn AnyValue>> for IndexerDescriptor
impl IObservable<Rc<dyn AnyValue>> for IndexerDescriptor
Source§fn subscribe(
&self,
observer: Rc<dyn IObserver<BoxedValue>>,
) -> Rc<dyn IDisposable>
fn subscribe( &self, observer: Rc<dyn IObserver<BoxedValue>>, ) -> Rc<dyn IDisposable>
Panics if the description has neither a source observable nor a source object and property.
Source§impl Not for IndexerDescriptor
Makes a two-way binding (the ! and ~ operators of the description).
impl Not for IndexerDescriptor
Makes a two-way binding (the ! and ~ operators of the description).
Source§type Output = IndexerDescriptor
type Output = IndexerDescriptor
The resulting type after applying the
! operator.Source§fn not(self) -> IndexerDescriptor
fn not(self) -> IndexerDescriptor
Performs the unary
! operation. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for IndexerDescriptor
impl !Send for IndexerDescriptor
impl !Sync for IndexerDescriptor
impl !UnwindSafe for IndexerDescriptor
impl Freeze for IndexerDescriptor
impl Unpin for IndexerDescriptor
impl UnsafeUnpin for IndexerDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more