pub struct Field<Name, Type> {
pub name: &'static str,
pub value: Type,
/* private fields */
}
Expand description
Fields§
§name: &'static str
§value: Type
Trait Implementations§
source§impl<Name, Type> Ord for Field<Name, Type>where
Name: Ord,
Type: Ord,
impl<Name, Type> Ord for Field<Name, Type>where
Name: Ord,
Type: Ord,
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<Name, Type> PartialEq<Field<Name, Type>> for Field<Name, Type>where
Name: PartialEq<Name>,
Type: PartialEq<Type>,
impl<Name, Type> PartialEq<Field<Name, Type>> for Field<Name, Type>where
Name: PartialEq<Name>,
Type: PartialEq<Type>,
source§impl<Name, Type> PartialOrd<Field<Name, Type>> for Field<Name, Type>where
Name: PartialOrd<Name>,
Type: PartialOrd<Type>,
impl<Name, Type> PartialOrd<Field<Name, Type>> for Field<Name, Type>where
Name: PartialOrd<Name>,
Type: PartialOrd<Type>,
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 moresource§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>>,
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>>,
Implementation of Transmogrifier
for when the target is an HList
, and the Source
is a plucked
HList
.
source§fn transmogrify(self) -> HCons<TargetHead, TargetTail>
fn transmogrify(self) -> HCons<TargetHead, TargetTail>
Consume this current object and return an object of the Target type. Read more
source§impl<Key, SourceValue> Transmogrifier<SourceValue, IdentityTransMog> for Field<Key, SourceValue>
impl<Key, SourceValue> Transmogrifier<SourceValue, IdentityTransMog> for Field<Key, SourceValue>
Implementation of Transmogrifier
for identity plucked Field
to Field
Transforms.
source§fn transmogrify(self) -> SourceValue
fn transmogrify(self) -> SourceValue
Consume this current object and return an object of the Target type. Read more
source§impl<Source, TargetName, TargetValue, TransmogIndices> Transmogrifier<TargetValue, PluckedLabelledGenericIndicesWrapper<TransmogIndices>> for Field<TargetName, Source>where
Source: LabelledGeneric + Transmogrifier<TargetValue, TransmogIndices>,
TargetValue: LabelledGeneric,
impl<Source, TargetName, TargetValue, TransmogIndices> Transmogrifier<TargetValue, PluckedLabelledGenericIndicesWrapper<TransmogIndices>> for Field<TargetName, Source>where
Source: LabelledGeneric + Transmogrifier<TargetValue, TransmogIndices>,
TargetValue: LabelledGeneric,
source§fn transmogrify(self) -> TargetValue
fn transmogrify(self) -> TargetValue
Consume this current object and return an object of the Target type. Read more
source§impl<Key, Source, Target, InnerIndices> Transmogrifier<Vec<Target, Global>, MappingIndicesWrapper<InnerIndices>> for Field<Key, Vec<Source, Global>>where
Source: Transmogrifier<Target, InnerIndices>,
impl<Key, Source, Target, InnerIndices> Transmogrifier<Vec<Target, Global>, MappingIndicesWrapper<InnerIndices>> for Field<Key, Vec<Source, Global>>where
Source: Transmogrifier<Target, InnerIndices>,
Implementation of Transmogrifier
that maps over a Vec
in a Field
, transmogrifying the
elements on the way past.