pub enum Nya {
Puk(puk),
Pak(pak),
}
Expand description
Nya flags documentation
Variants§
Implementations§
Source§impl Nya
impl Nya
pub fn try_parse_terminated<T: Parse>( lookahead1: &Lookahead1<'_>, stream: ParseStream<'_>, ) -> Result<Option<Punctuated<Self, Comma>>, Error>
Trait Implementations§
Source§impl EasyArgumentGroup for Nya
impl EasyArgumentGroup for Nya
Source§fn try_parse(
lookahead1: &Lookahead1<'_>,
stream: ParseStream<'_>,
) -> Result<Option<Self>, Error>
fn try_parse( lookahead1: &Lookahead1<'_>, stream: ParseStream<'_>, ) -> Result<Option<Self>, Error>
Attempt to parse attribute group.
Returns some attribute 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 overlap_error(&self, other: &Self) -> Error
fn overlap_error(&self, other: &Self) -> Error
Produces error with appropriate message when the attribute group overlaps another instance.
This is called by certain
EasyArgumentField
implementations. Read moreSource§fn missing_error() -> String
fn missing_error() -> String
Produces error with appropriate message when the attribute group is missing.
This is called by certain
EasyArgumentField
implementations.Source§impl ToTokens for Nya
impl ToTokens for Nya
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
impl Copy for Nya
impl Eq for Nya
impl StructuralPartialEq for Nya
Auto Trait Implementations§
impl Freeze for Nya
impl RefUnwindSafe for Nya
impl !Send for Nya
impl !Sync for Nya
impl Unpin for Nya
impl UnwindSafe for Nya
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EasyArgumentField for Twhere
T: EasyArgumentGroup,
impl<T> EasyArgumentField for Twhere
T: EasyArgumentGroup,
Source§fn try_parse(
lookahead1: &Lookahead1<'_>,
stream: &ParseBuffer<'_>,
) -> Result<Option<T>, Error>
fn try_parse( lookahead1: &Lookahead1<'_>, stream: &ParseBuffer<'_>, ) -> Result<Option<T>, 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: &ParseBuffer<'_>,
) -> Result<bool, Error>
fn try_extend( &mut self, lookahead1: &Lookahead1<'_>, stream: &ParseBuffer<'_>, ) -> 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§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
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.