pub struct ReflectOptionalRef<'a>(/* private fields */);
Expand description
Singular field field and value type.
Implementations§
Source§impl<'a> ReflectOptionalRef<'a>
impl<'a> ReflectOptionalRef<'a>
Sourcepub fn none(elem: RuntimeType) -> ReflectOptionalRef<'a>
pub fn none(elem: RuntimeType) -> ReflectOptionalRef<'a>
No value.
Sourcepub fn some(value: ReflectValueRef<'a>) -> ReflectOptionalRef<'a>
pub fn some(value: ReflectValueRef<'a>) -> ReflectOptionalRef<'a>
Has value.
Sourcepub fn value(&self) -> Option<ReflectValueRef<'a>>
pub fn value(&self) -> Option<ReflectValueRef<'a>>
Obtain the value, drop the type.
Trait Implementations§
Source§impl<'a> PartialEq for ReflectOptionalRef<'a>
impl<'a> PartialEq for ReflectOptionalRef<'a>
Source§impl<'a> ReflectEq for ReflectOptionalRef<'a>
impl<'a> ReflectEq for ReflectOptionalRef<'a>
Source§fn reflect_eq(&self, that: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, that: &Self, mode: &ReflectEqMode) -> bool
Perform the equality comparison.
Auto Trait Implementations§
impl<'a> !Freeze for ReflectOptionalRef<'a>
impl<'a> !RefUnwindSafe for ReflectOptionalRef<'a>
impl<'a> Send for ReflectOptionalRef<'a>
impl<'a> Sync for ReflectOptionalRef<'a>
impl<'a> Unpin for ReflectOptionalRef<'a>
impl<'a> !UnwindSafe for ReflectOptionalRef<'a>
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