Type Alias devise::Union

source ·
pub type Union<'v> = Derived<'v, ItemUnion, &'v ItemInput>;

Aliased Type§

struct Union<'v> {
    pub parent: &'v ItemInput,
    pub inner: &'v ItemUnion,
}

Fields§

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

Implementations§

source§

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

source

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

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,