pub struct ModelRef<M>(/* private fields */);Expand description
A property that refers to a shared model object: Option<Rc<M>>. The
object itself travels through bindings (no copy, identity preserved).
Trait Implementations§
Source§impl<M: PartialEq + 'static> PropertyKind for ModelRef<M>
impl<M: PartialEq + 'static> PropertyKind for ModelRef<M>
Source§fn value_type() -> ValueType
fn value_type() -> ValueType
The value type reported for the property.
fn to_untyped(value: Option<Rc<M>>) -> Option<BoxedValue>
fn from_untyped(value: Option<&BoxedValue>) -> Option<Option<Rc<M>>>
Auto Trait Implementations§
impl<M> Freeze for ModelRef<M>where
PhantomData<M>: Freeze,
impl<M> RefUnwindSafe for ModelRef<M>where
PhantomData<M>: RefUnwindSafe,
impl<M> Send for ModelRef<M>where
PhantomData<M>: Send,
impl<M> Sync for ModelRef<M>where
PhantomData<M>: Sync,
impl<M> Unpin for ModelRef<M>where
PhantomData<M>: Unpin,
impl<M> UnsafeUnpin for ModelRef<M>where
PhantomData<M>: UnsafeUnpin,
impl<M> UnwindSafe for ModelRef<M>where
PhantomData<M>: UnwindSafe,
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