pub struct Value<T>(/* private fields */);Expand description
A property of value type T that is never null.
Trait Implementations§
Source§impl<T: PropertyValue> PropertyKind for Value<T>
impl<T: PropertyValue> PropertyKind for Value<T>
Source§fn value_type() -> ValueType
fn value_type() -> ValueType
The value type reported for the property.
fn to_untyped(value: T) -> Option<BoxedValue>
fn from_untyped(value: Option<&BoxedValue>) -> Option<T>
Auto Trait Implementations§
impl<T> Freeze for Value<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for Value<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for Value<T>where
PhantomData<T>: Send,
impl<T> Sync for Value<T>where
PhantomData<T>: Sync,
impl<T> Unpin for Value<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for Value<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for Value<T>where
PhantomData<T>: 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