[][src]Enum darling_core::codegen::DefaultExpression

pub enum DefaultExpression<'a> {
    Inherit(&'a Ident),
    Explicit(&'a Path),
    Trait,
}

The fallback value for a field or container.

Variants

Inherit(&'a Ident)

Only valid on fields, Inherit indicates that the value should be taken from a pre-constructed fallback object. The value in the variant is the ident of the field.

Explicit(&'a Path)Trait

Methods

impl<'a> DefaultExpression<'a>
[src]

pub fn as_declaration(&'a self) -> DefaultDeclaration<'a>
[src]

Trait Implementations

impl<'a> PartialEq<DefaultExpression<'a>> for DefaultExpression<'a>
[src]

impl<'a> Eq for DefaultExpression<'a>
[src]

impl<'a> Clone for DefaultExpression<'a>
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for DefaultExpression<'a>
[src]

impl<'a> ToTokens for DefaultExpression<'a>
[src]

fn into_token_stream(self) -> TokenStream
[src]

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

impl<'a> !Send for DefaultExpression<'a>

impl<'a> !Sync for DefaultExpression<'a>

Blanket Implementations

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

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

type Owned = T

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Spanned for T where
    T: ToTokens
[src]