Struct frunk_core::labelled::ValueField [−][src]
pub struct ValueField<Type> { pub name: &'static str, pub value: Type, }
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
impl<Type: PartialEq> PartialEq for ValueField<Type>
[src]
impl<Type: PartialEq> PartialEq for ValueField<Type>
fn eq(&self, other: &ValueField<Type>) -> bool
[src]
fn eq(&self, other: &ValueField<Type>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ValueField<Type>) -> bool
[src]
fn ne(&self, other: &ValueField<Type>) -> bool
This method tests for !=
.
impl<Type: Eq> Eq for ValueField<Type>
[src]
impl<Type: Eq> Eq for ValueField<Type>
impl<Type: Clone> Clone for ValueField<Type>
[src]
impl<Type: Clone> Clone for ValueField<Type>
fn clone(&self) -> ValueField<Type>
[src]
fn clone(&self) -> ValueField<Type>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<Type: Copy> Copy for ValueField<Type>
[src]
impl<Type: Copy> Copy for ValueField<Type>
impl<Type: PartialOrd> PartialOrd for ValueField<Type>
[src]
impl<Type: PartialOrd> PartialOrd for ValueField<Type>
fn partial_cmp(&self, other: &ValueField<Type>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &ValueField<Type>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ValueField<Type>) -> bool
[src]
fn lt(&self, other: &ValueField<Type>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ValueField<Type>) -> bool
[src]
fn le(&self, other: &ValueField<Type>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &ValueField<Type>) -> bool
[src]
fn gt(&self, other: &ValueField<Type>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ValueField<Type>) -> bool
[src]
fn ge(&self, other: &ValueField<Type>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<Type: Ord> Ord for ValueField<Type>
[src]
impl<Type: Ord> Ord for ValueField<Type>
fn cmp(&self, other: &ValueField<Type>) -> Ordering
[src]
fn cmp(&self, other: &ValueField<Type>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<Type: Hash> Hash for ValueField<Type>
[src]
impl<Type: Hash> Hash for ValueField<Type>
fn hash<__HType: Hasher>(&self, state: &mut __HType)
[src]
fn hash<__HType: Hasher>(&self, state: &mut __HType)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<Type> Debug for ValueField<Type> where
Type: Debug,
[src]
impl<Type> Debug for ValueField<Type> where
Type: Debug,
Auto Trait Implementations
impl<Type> Send for ValueField<Type> where
Type: Send,
impl<Type> Send for ValueField<Type> where
Type: Send,
impl<Type> Sync for ValueField<Type> where
Type: Sync,
impl<Type> Sync for ValueField<Type> where
Type: Sync,