pub struct IndexerBinding {
pub property: &'static FerroProperty,
/* private fields */
}Expand description
A binding to a registered property of another object: what the binding
indexer of FerroObject (FerroObject::indexer) produces.
Fields§
§property: &'static FerroPropertyThe property of the source being bound.
Implementations§
Source§impl IndexerBinding
impl IndexerBinding
pub fn new( source: Ref<FerroObject>, property: &'static FerroProperty, mode: BindingMode, ) -> Self
pub fn source(&self) -> &Ref<FerroObject>
pub fn mode(&self) -> BindingMode
Trait Implementations§
Source§impl BindingBase for IndexerBinding
impl BindingBase for IndexerBinding
Source§fn as_any(&self) -> Option<&dyn Any>
fn as_any(&self) -> Option<&dyn Any>
The implementing value, for casting to its concrete type
(
as_any()?.downcast_ref::<T>()): the equivalent of is/as on the
contract. None for an implementation that does not expose itself.Source§fn create_instance(
&self,
target: &FerroObject,
target_property: Option<&'static FerroProperty>,
_anchor: Option<&Ref<FerroObject>>,
) -> Rc<dyn BindingExpressionBase>
fn create_instance( &self, target: &FerroObject, target_property: Option<&'static FerroProperty>, _anchor: Option<&Ref<FerroObject>>, ) -> Rc<dyn BindingExpressionBase>
Creates a binding expression from the binding. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for IndexerBinding
impl !Send for IndexerBinding
impl !Sync for IndexerBinding
impl !UnwindSafe for IndexerBinding
impl Freeze for IndexerBinding
impl Unpin for IndexerBinding
impl UnsafeUnpin for IndexerBinding
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