[][src]Enum rebound::FieldKind

pub enum FieldKind {
    Tuple {
        idx: usize,
    },
    Named {
        name: &'static str,
    },
    EnumTuple {
        idx: usize,
        assoc_var: Variant,
    },
    EnumNamed {
        name: &'static str,
        assoc_var: Variant,
    },
}

Info about different kinds of Fields

Variants

Tuple

A tuple field, accessed by numeric index

Fields of Tuple

idx: usize

The index of this field

Named

A named field, accessed by textual name

Fields of Named

name: &'static str

The name of this field

EnumTuple

An enum tuple field, accessed by variant and numeric index

Fields of EnumTuple

idx: usize

The index of this field

assoc_var: Variant

The variant of this field

EnumNamed

An enum named field, accessed by variant and textual name

Fields of EnumNamed

name: &'static str

The name of this field

assoc_var: Variant

The variant of this field

Trait Implementations

impl Debug for FieldKind[src]

Auto Trait Implementations

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.