[][src]Struct hyperbole::field::Field

pub struct Field<T, const NAME: &'static str> { /* fields omitted */ }

A named value where the name is lifted to the type level, analagous to a struct field.

This struct is intended to be named and instantiated via the f! or record! macros.

Implementations

impl<T, const NAME: &'static str> Field<T, NAME>[src]

pub const fn new(inner: T) -> Self[src]

Returns a new field.

pub fn into_inner(self) -> T[src]

Extracts the field's inner value.

pub const NAME: &'static str[src]

The field's name.

Trait Implementations

impl<T: Clone, const NAME: &'static str> Clone for Field<T, NAME>[src]

impl<T: Copy, const NAME: &'static str> Copy for Field<T, NAME>[src]

impl<T: Debug, const NAME: &'static str> Debug for Field<T, NAME>[src]

impl<T, const NAME: &'static str> Deref for Field<T, NAME>[src]

type Target = T

The resulting type after dereferencing.

impl<T, const NAME: &'static str> DerefMut for Field<T, NAME>[src]

impl<'de, T: Deserialize<'de>, const NAME: &'static str> Deserialize<'de> for Field<T, NAME>[src]

impl<T: Display, const NAME: &'static str> Display for Field<T, NAME>[src]

impl<T: Eq, const NAME: &'static str> Eq for Field<T, NAME>[src]

impl<T, const NAME: &'static str> From<T> for Field<T, NAME>[src]

impl<T: FromStr, const NAME: &'static str> FromStr for Field<T, NAME>[src]

type Err = T::Err

The associated error which can be returned from parsing.

impl<T: Hash, const NAME: &'static str> Hash for Field<T, NAME>[src]

impl<T: Ord, const NAME: &'static str> Ord for Field<T, NAME>[src]

impl<T: PartialEq, const NAME: &'static str> PartialEq<Field<T, NAME>> for Field<T, NAME>[src]

impl<T: PartialOrd, const NAME: &'static str> PartialOrd<Field<T, NAME>> for Field<T, NAME>[src]

impl<T: Reply, const NAME: &'static str> Reply for Field<T, NAME>[src]

impl<T: Serialize, const NAME: &'static str> Serialize for Field<T, NAME>[src]

impl<T, const NAME: &'static str> StructuralEq for Field<T, NAME>[src]

impl<T, const NAME: &'static str> StructuralPartialEq for Field<T, NAME>[src]

Auto Trait Implementations

impl<const NAME: &'static str, T> RefUnwindSafe for Field<T, NAME> where
    T: RefUnwindSafe

impl<const NAME: &'static str, T> Send for Field<T, NAME> where
    T: Send

impl<const NAME: &'static str, T> Sync for Field<T, NAME> where
    T: Sync

impl<const NAME: &'static str, T> Unpin for Field<T, NAME> where
    T: Unpin

impl<const NAME: &'static str, T> UnwindSafe for Field<T, NAME> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.