pub struct FieldRefAsOptionFieldRef<T, U>(/* private fields */);
Expand description
A OptionFieldRef
which converted from A FieldRef
.
Trait Implementations§
Source§impl<T, U> Clone for FieldRefAsOptionFieldRef<T, U>
impl<T, U> Clone for FieldRefAsOptionFieldRef<T, U>
Source§impl<'x, T, U> OptionFieldRef<'x> for FieldRefAsOptionFieldRef<T, U>
impl<'x, T, U> OptionFieldRef<'x> for FieldRefAsOptionFieldRef<T, U>
type Input = T
type Output = U
Source§fn get<'a>(&'a self, obj: &'x Self::Input) -> Option<&'x Self::Output>
fn get<'a>(&'a self, obj: &'x Self::Input) -> Option<&'x Self::Output>
Get a reference of value in an object to which
OptionFieldRef
refers. Read moreSource§fn get_mut<'a>(
&'a self,
obj: &'x mut Self::Input,
) -> Option<&'x mut Self::Output>
fn get_mut<'a>( &'a self, obj: &'x mut Self::Input, ) -> Option<&'x mut Self::Output>
Get a mutable reference of value in an object to which
OptionFieldRef
refers. Read moreSource§fn chain<FR, R: 'x>(&self, fr: FR) -> OptionFieldRefChain<Self, FR>
fn chain<FR, R: 'x>(&self, fr: FR) -> OptionFieldRefChain<Self, FR>
Chains two field references. Read more
impl<T, U> Copy for FieldRefAsOptionFieldRef<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for FieldRefAsOptionFieldRef<T, U>
impl<T, U> RefUnwindSafe for FieldRefAsOptionFieldRef<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for FieldRefAsOptionFieldRef<T, U>
impl<T, U> Sync for FieldRefAsOptionFieldRef<T, U>
impl<T, U> Unpin for FieldRefAsOptionFieldRef<T, U>
impl<T, U> UnwindSafe for FieldRefAsOptionFieldRef<T, U>where
T: UnwindSafe,
U: 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