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
sourceimpl<Type> Clone for ValueField<Type>where
Type: Clone,
impl<Type> Clone for ValueField<Type>where
Type: Clone,
sourcefn clone(&self) -> ValueField<Type>
fn clone(&self) -> ValueField<Type>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<Type> Debug for ValueField<Type>where
Type: Debug,
impl<Type> Debug for ValueField<Type>where
Type: Debug,
sourceimpl<Type> Hash for ValueField<Type>where
Type: Hash,
impl<Type> Hash for ValueField<Type>where
Type: Hash,
sourceimpl<Type> Ord for ValueField<Type>where
Type: Ord,
impl<Type> Ord for ValueField<Type>where
Type: Ord,
sourcefn cmp(&self, other: &ValueField<Type>) -> Ordering
fn cmp(&self, other: &ValueField<Type>) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<Type> PartialEq<ValueField<Type>> for ValueField<Type>where
Type: PartialEq<Type>,
impl<Type> PartialEq<ValueField<Type>> for ValueField<Type>where
Type: PartialEq<Type>,
sourcefn eq(&self, other: &ValueField<Type>) -> bool
fn eq(&self, other: &ValueField<Type>) -> bool
sourceimpl<Type> PartialOrd<ValueField<Type>> for ValueField<Type>where
Type: PartialOrd<Type>,
impl<Type> PartialOrd<ValueField<Type>> for ValueField<Type>where
Type: PartialOrd<Type>,
sourcefn partial_cmp(&self, other: &ValueField<Type>) -> Option<Ordering>
fn partial_cmp(&self, other: &ValueField<Type>) -> Option<Ordering>
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more