[][src]Struct destruct::DestructField

pub struct DestructField<H, T, M> where
    M: 'static + DestructFieldMetadata
{ pub head: H, pub tail: T, // some fields omitted }

Fields

head: Htail: T

Methods

impl<H, T, M> DestructField<H, T, M> where
    M: 'static + DestructFieldMetadata
[src]

pub fn struct_name(&self) -> &'static str[src]

pub fn field_name(&self) -> &'static str[src]

pub fn field_index(&self) -> usize[src]

impl<H, T, M> DestructField<H, T, M> where
    M: 'static + DestructFieldMetadata
[src]

pub fn new(head: H, tail: T) -> DestructField<H, T, M>[src]

Constructs a new DestructField.

Trait Implementations

impl<H, T, M> Debug for DestructField<H, T, M> where
    H: Debug,
    M: 'static + DestructFieldMetadata + Debug,
    T: Debug
[src]

impl<H, T, M> StructuralPartialEq for DestructField<H, T, M> where
    M: 'static + DestructFieldMetadata
[src]

impl<H, T, M> PartialEq<DestructField<H, T, M>> for DestructField<H, T, M> where
    H: PartialEq<H>,
    M: 'static + DestructFieldMetadata + PartialEq<M>,
    T: PartialEq<T>, 
[src]

impl<H, T, M> Eq for DestructField<H, T, M> where
    H: Eq,
    M: 'static + DestructFieldMetadata + Eq,
    T: Eq
[src]

impl<H, T, M> StructuralEq for DestructField<H, T, M> where
    M: 'static + DestructFieldMetadata
[src]

Auto Trait Implementations

impl<H, T, M> Send for DestructField<H, T, M> where
    H: Send,
    M: Sync,
    T: Send

impl<H, T, M> Sync for DestructField<H, T, M> where
    H: Sync,
    M: Sync,
    T: Sync

impl<H, T, M> Unpin for DestructField<H, T, M> where
    H: Unpin,
    T: Unpin

impl<H, T, M> UnwindSafe for DestructField<H, T, M> where
    H: UnwindSafe,
    M: RefUnwindSafe,
    T: UnwindSafe

impl<H, T, M> RefUnwindSafe for DestructField<H, T, M> where
    H: RefUnwindSafe,
    M: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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