Struct proc_easy::examples::Nyas

source ·
pub struct Nyas {
    pub flags: Punctuated<Nya, Comma>,
}

Fields§

§flags: Punctuated<Nya, Comma>

Implementations§

source§

impl Nyas

source

pub fn new() -> Self

Trait Implementations§

source§

impl Clone for Nyas

source§

fn clone(&self) -> Nyas

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 Debug for Nyas

source§

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

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

impl Default for Nyas

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl EasyArgumentField for Nyas

source§

fn try_parse( lookahead1: &Lookahead1<'_>, stream: ParseStream<'_> ) -> Result<Option<Self>, Error>

Attempt to parse attribute field. Returns some field when parsing succeeds. Returns none if attribute peeking returns false, signalling that stream contains some other attribute. Returns error if peeking returns true but parsing fails.
source§

fn try_extend( &mut self, lookahead1: &Lookahead1<'_>, stream: ParseStream<'_> ) -> Result<bool, Error>

Attempt to parse attribute field when it already has been successfully parsed. Field value should extend itself with newly parsed attribute or return error. Returns true when parsing and extending succeeds. Returns false if attribute peeking returns false, signalling that stream contains some other attribute. Returns error if peeking returns true but parsing or extending fails.
source§

fn missing() -> Result<Self, String>

Called if the attribute field was never parsed. Returns error if attribute is mandatory. Otherwise returns an instance that will be used to build attributes structure.
source§

impl Parse for Nyas

source§

fn parse(stream: ParseStream<'_>) -> Result<Self, Error>

source§

impl ToTokens for Nyas

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

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Nyas

§

impl !Send for Nyas

§

impl !Sync for Nyas

§

impl Unpin for Nyas

§

impl UnwindSafe for Nyas

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Spanned for Twhere T: Spanned + ?Sized,

source§

fn span(&self) -> Span

Returns a Span covering the complete contents of this syntax tree node, or Span::call_site() if this node is empty.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.