pub struct FieldRef<'a, Field> {
pub field: &'a Field,
/* private fields */
}Expand description
A reference to the field. On its own, it doesn’t do anything.
Fields§
§field: &'a FieldTrait Implementations§
Source§impl<'a, Field> PartialEq for FieldRef<'a, Field>
very restrictive equality, pointer equality on the Field
This prevents us from having to deep-compare the Field
if the Field is not the same, we’ll resort to recursive comparison of exprs
impl<'a, Field> PartialEq for FieldRef<'a, Field>
very restrictive equality, pointer equality on the Field This prevents us from having to deep-compare the Field if the Field is not the same, we’ll resort to recursive comparison of exprs
impl<'a, Field> Copy for FieldRef<'a, Field>
impl<'a, Field: Eq> Eq for FieldRef<'a, Field>
Auto Trait Implementations§
impl<'a, Field> Freeze for FieldRef<'a, Field>
impl<'a, Field> RefUnwindSafe for FieldRef<'a, Field>where
Field: RefUnwindSafe,
impl<'a, Field> Send for FieldRef<'a, Field>where
Field: Sync,
impl<'a, Field> Sync for FieldRef<'a, Field>where
Field: Sync,
impl<'a, Field> Unpin for FieldRef<'a, Field>
impl<'a, Field> UnwindSafe for FieldRef<'a, Field>where
Field: RefUnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more