Struct frunk::labelled::ValueField
source · pub struct ValueField<Type> {
pub name: &'static str,
pub value: Type,
}
Expand description
A version of Field that doesn’t have a type-level label, just a value-level one
Fields§
§name: &'static str
§value: Type
Trait Implementations§
source§impl<Type> Clone for ValueField<Type>where
Type: Clone,
impl<Type> Clone for ValueField<Type>where Type: Clone,
source§fn clone(&self) -> ValueField<Type>
fn clone(&self) -> ValueField<Type>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Type> Debug for ValueField<Type>where
Type: Debug,
impl<Type> Debug for ValueField<Type>where Type: Debug,
source§impl<Type> Hash for ValueField<Type>where
Type: Hash,
impl<Type> Hash for ValueField<Type>where Type: Hash,
source§impl<Type> Ord for ValueField<Type>where
Type: Ord,
impl<Type> Ord for ValueField<Type>where Type: Ord,
source§fn cmp(&self, other: &ValueField<Type>) -> Ordering
fn cmp(&self, other: &ValueField<Type>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Type> PartialEq for ValueField<Type>where
Type: PartialEq,
impl<Type> PartialEq for ValueField<Type>where Type: PartialEq,
source§fn eq(&self, other: &ValueField<Type>) -> bool
fn eq(&self, other: &ValueField<Type>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Type> PartialOrd for ValueField<Type>where
Type: PartialOrd,
impl<Type> PartialOrd for ValueField<Type>where Type: PartialOrd,
source§fn partial_cmp(&self, other: &ValueField<Type>) -> Option<Ordering>
fn partial_cmp(&self, other: &ValueField<Type>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<Type> Copy for ValueField<Type>where Type: Copy,
impl<Type> Eq for ValueField<Type>where Type: Eq,
impl<Type> StructuralEq for ValueField<Type>
impl<Type> StructuralPartialEq for ValueField<Type>
Auto Trait Implementations§
impl<Type> RefUnwindSafe for ValueField<Type>where Type: RefUnwindSafe,
impl<Type> Send for ValueField<Type>where Type: Send,
impl<Type> Sync for ValueField<Type>where Type: Sync,
impl<Type> Unpin for ValueField<Type>where Type: Unpin,
impl<Type> UnwindSafe for ValueField<Type>where Type: 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