Struct field_ref::FieldRefAsOptionFieldRef
[−]
[src]
pub struct FieldRefAsOptionFieldRef<T, U>(_);
A OptionFieldRef
which converted from A FieldRef
.
Trait Implementations
impl<'x, T, U> OptionFieldRef<'x> for FieldRefAsOptionFieldRef<T, U>
[src]
type Input = T
type Output = U
fn get<'a>(&'a self, obj: &'x Self::Input) -> Option<&'x Self::Output>
[src]
Get a reference of value in an object to which OptionFieldRef
refers. Read more
fn get_mut<'a>(
&'a self,
obj: &'x mut Self::Input
) -> Option<&'x mut Self::Output>
[src]
&'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 more
fn chain<FR, R: 'x>(&self, fr: FR) -> OptionFieldRefChain<Self, FR> where
FR: OptionFieldRef<'x, Input = Self::Output, Output = R> + Copy,
[src]
FR: OptionFieldRef<'x, Input = Self::Output, Output = R> + Copy,
Chains two field references. Read more
impl<T, U> Clone for FieldRefAsOptionFieldRef<T, U>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, U> Copy for FieldRefAsOptionFieldRef<T, U>
[src]
Auto Trait Implementations
impl<T, U> Send for FieldRefAsOptionFieldRef<T, U> where
T: Send,
U: Send,
T: Send,
U: Send,
impl<T, U> Sync for FieldRefAsOptionFieldRef<T, U> where
T: Sync,
U: Sync,
T: Sync,
U: Sync,