[−][src]Struct frunk::labelled::Field
A Label contains a type-level Name, a runtime value, and
a reference to a &'static str name.
To construct one, use the field! macro.
Examples
use frunk::labelled::chars::*; let labelled = field![(n,a,m,e), "joe"]; assert_eq!(labelled.name, "name"); assert_eq!(labelled.value, "joe")Run
Fields
name: &'static strvalue: TypeTrait Implementations
impl<Name, Type> Copy for Field<Name, Type> where
Name: Copy,
Type: Copy, [src]
Name: Copy,
Type: Copy,
impl<Name, Type> PartialEq<Field<Name, Type>> for Field<Name, Type> where
Name: PartialEq<Name>,
Type: PartialEq<Type>, [src]
Name: PartialEq<Name>,
Type: PartialEq<Type>,
fn eq(&self, other: &Field<Name, Type>) -> bool[src]
fn ne(&self, other: &Field<Name, Type>) -> bool[src]
impl<Name, Type> Hash for Field<Name, Type> where
Name: Hash,
Type: Hash, [src]
Name: Hash,
Type: Hash,
fn hash<__HNameType>(&self, state: &mut __HNameType) where
__HNameType: Hasher, [src]
__HNameType: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl<Name, Type> Ord for Field<Name, Type> where
Name: Ord,
Type: Ord, [src]
Name: Ord,
Type: Ord,
fn cmp(&self, other: &Field<Name, Type>) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<Name, Type> Eq for Field<Name, Type> where
Name: Eq,
Type: Eq, [src]
Name: Eq,
Type: Eq,
impl<SourceHead, SourceTail, TargetName, TargetHead, TargetTail, TransmogHeadIndex, TransmogTailIndices> Transmogrifier<HCons<TargetHead, TargetTail>, HCons<TransmogHeadIndex, TransmogTailIndices>> for Field<TargetName, HCons<SourceHead, SourceTail>> where
HCons<SourceHead, SourceTail>: Transmogrifier<HCons<TargetHead, TargetTail>, HCons<TransmogHeadIndex, TransmogTailIndices>>, [src]
HCons<SourceHead, SourceTail>: Transmogrifier<HCons<TargetHead, TargetTail>, HCons<TransmogHeadIndex, TransmogTailIndices>>,
Implementation of Transmogrifier for when the target is an HList, and the Source is a plucked
HList.
fn transmogrify(self) -> HCons<TargetHead, TargetTail>[src]
impl<Key, SourceValue> Transmogrifier<SourceValue, IdentityTransMog> for Field<Key, SourceValue>[src]
Implementation of Transmogrifier for identity plucked Field to Field Transforms.
fn transmogrify(self) -> SourceValue[src]
impl<Source, TargetName, TargetValue, TransmogIndices> Transmogrifier<TargetValue, PluckedLabelledGenericIndicesWrapper<TransmogIndices>> for Field<TargetName, Source> where
Source: LabelledGeneric + Transmogrifier<TargetValue, TransmogIndices>,
TargetValue: LabelledGeneric, [src]
Source: LabelledGeneric + Transmogrifier<TargetValue, TransmogIndices>,
TargetValue: LabelledGeneric,
fn transmogrify(self) -> TargetValue[src]
impl<Key, Source, Target, InnerIndices> Transmogrifier<Vec<Target>, MappingIndicesWrapper<InnerIndices>> for Field<Key, Vec<Source>> where
Source: Transmogrifier<Target, InnerIndices>, [src]
Source: Transmogrifier<Target, InnerIndices>,
Implementation of Transmogrifier that maps over a Vec in a Field, transmogrifying the
elements on the way past.
fn transmogrify(self) -> Vec<Target>[src]
impl<Name, Type> Debug for Field<Name, Type> where
Type: Debug, [src]
Type: Debug,
impl<Name, Type> Clone for Field<Name, Type> where
Name: Clone,
Type: Clone, [src]
Name: Clone,
Type: Clone,
fn clone(&self) -> Field<Name, Type>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<Name, Type> PartialOrd<Field<Name, Type>> for Field<Name, Type> where
Name: PartialOrd<Name>,
Type: PartialOrd<Type>, [src]
Name: PartialOrd<Name>,
Type: PartialOrd<Type>,
Auto Trait Implementations
impl<Name, Type> Send for Field<Name, Type> where
Name: Send,
Type: Send,
Name: Send,
Type: Send,
impl<Name, Type> Sync for Field<Name, Type> where
Name: Sync,
Type: Sync,
Name: Sync,
Type: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<Choices> CoproductSubsetter for Choices[src]
type Remainder = Choices
fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>[src]
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<Source> Sculptor for Source[src]
impl<T, U, I> LiftInto for T where
U: LiftFrom<T, I>, [src]
U: LiftFrom<T, I>,