Type Alias Struct

Source
pub type Struct<'v> = Derived<'v, ItemStruct>;

Aliased Type§

struct Struct<'v> {
    pub parent: &'v ItemInput,
    pub inner: &'v ItemStruct,
}

Fields§

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

Implementations

Source§

impl<'p> Derived<'p, ItemStruct>

Source

pub fn fields(self) -> Fields<'p>

Source

pub fn builder<F>(&self, f: F) -> TokenStream
where F: Fn(Field<'_>) -> TokenStream,

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>

Source§

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) -> TokenStream
where 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,