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