Type Alias devise::Enum

source ·
pub type Enum<'v> = Derived<'v, ItemEnum, &'v ItemInput>;

Aliased Type§

struct Enum<'v> {
    pub parent: &'v ItemInput,
    pub inner: &'v ItemEnum,
}

Fields§

§parent: &'v ItemInput§inner: &'v ItemEnum

Implementations§

source§

impl<'p, T, P> Derived<'p, T, P>

source

pub fn from(value: &'p T, parent: P) -> Derived<'p, T, P>

source§

impl<'p> Derived<'p, ItemEnum, &'p ItemInput>

source

pub fn variants( self ) -> impl Iterator<Item = Derived<'p, Variant, Derived<'p, ItemEnum, &'p ItemInput>>> + Clone

Trait Implementations§

source§

impl<'p, T, P> Clone for Derived<'p, T, P>where P: Clone,

source§

fn clone(&self) -> Derived<'p, T, P>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'p, T, P> Debug for Derived<'p, T, P>where T: Debug, P: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'p, T, P> Deref for Derived<'p, T, P>

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl<'p, T, P> ToTokens for Derived<'p, T, P>where T: ToTokens,

source§

fn to_tokens(&self, tokens: &mut TokenStream)

Write self to the given TokenStream. Read more
source§

fn to_token_stream(&self) -> TokenStream

Convert self directly into a TokenStream object. Read more
source§

fn into_token_stream(self) -> TokenStreamwhere Self: Sized,

Convert self directly into a TokenStream object. Read more
source§

impl<'p, T, P> Copy for Derived<'p, T, P>where P: Copy,