pub struct Nullable<T: ObjectType>(pub Option<Ref<T>>);Expand description
An optional object reference accepted by setters, convertible from a
handle (or a borrowed handle) of any derived class and from None.
Tuple Fields§
§0: Option<Ref<T>>Trait Implementations§
Source§impl<T: ObjectType + Upcast<U>, U: ObjectType> From<&Ref<T>> for Nullable<U>
impl<T: ObjectType + Upcast<U>, U: ObjectType> From<&Ref<T>> for Nullable<U>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Nullable<T>
impl<T> !Send for Nullable<T>
impl<T> !Sync for Nullable<T>
impl<T> !UnwindSafe for Nullable<T>
impl<T> Freeze for Nullable<T>
impl<T> Unpin for Nullable<T>
impl<T> UnsafeUnpin for Nullable<T>
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