Struct darling::util::WithOriginal [] [src]

pub struct WithOriginal<T, O> {
    pub parsed: T,
    pub original: O,
}

A container to parse some syntax and retain access to the original.

Fields

Methods

impl<T, O> WithOriginal<T, O>
[src]

[src]

Trait Implementations

impl<T> FromGenerics for WithOriginal<T, Generics> where
    T: FromGenerics
[src]

impl<T> FromDeriveInput for WithOriginal<T, DeriveInput> where
    T: FromDeriveInput
[src]

[src]

Create an instance from syn::DeriveInput, or return an error.

impl<T> FromGenericParam for WithOriginal<T, GenericParam> where
    T: FromGenericParam
[src]

impl<T> FromField for WithOriginal<T, Field> where
    T: FromField
[src]

impl<T, O> PartialEq<WithOriginal<T, O>> for WithOriginal<T, O> where
    O: PartialEq<O>,
    T: PartialEq<T>, 
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T, O> Clone for WithOriginal<T, O> where
    O: Clone,
    T: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> FromMeta for WithOriginal<T, Meta> where
    T: FromMeta
[src]

[src]

Create an instance from a syn::Meta by dispatching to the format-appropriate trait function. This generally should not be overridden by implementers. Read more

[src]

[src]

Create an instance from the presence of the word in the attribute with no additional options specified. Read more

[src]

Create an instance from a list of nested meta items.

[src]

Create an instance from a literal value of either foo = "bar" or foo("bar"). This dispatches to the appropriate method based on the type of literal encountered, and generally should not be overridden by implementers. Read more

[src]

Create an instance from a char literal in a value position.

[src]

Create an instance from a string literal in a value position.

[src]

Create an instance from a bool literal in a value position.

impl<T> FromVariant for WithOriginal<T, Variant> where
    T: FromVariant
[src]

[src]

Create an instance from syn::Variant, or return an error.

impl<T> FromTypeParam for WithOriginal<T, TypeParam> where
    T: FromTypeParam
[src]

impl<T, O> Eq for WithOriginal<T, O> where
    O: Eq,
    T: Eq
[src]

impl<T, O> Debug for WithOriginal<T, O> where
    O: Debug,
    T: Debug
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T, O> Send for WithOriginal<T, O> where
    O: Send,
    T: Send

impl<T, O> Sync for WithOriginal<T, O> where
    O: Sync,
    T: Sync