Expand description
Nya flags documentation
Variants
Puk(puk)
Puk documentation
Pak(pak)
Pak documentation
Implementations
sourceimpl Nya
impl Nya
pub fn try_parse_terminated<T: Parse>(
lookahead1: &Lookahead1<'_>,
stream: ParseStream<'_>
) -> Result<Option<Punctuated<Self, Comma>>, Error>
Trait Implementations
sourceimpl EasyArgumentGroup for Nya
impl EasyArgumentGroup for Nya
sourcefn 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. Read more
sourcefn 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 more
sourcefn 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. Read more
sourceimpl PartialEq<Nya> for Nya
impl PartialEq<Nya> for Nya
sourceimpl Spanned for Nya
impl Spanned for Nya
sourcefn 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. Read more
impl Copy for Nya
impl Eq for Nya
impl StructuralEq for Nya
impl StructuralPartialEq for Nya
Auto Trait Implementations
impl RefUnwindSafe for Nya
impl !Send for Nya
impl !Sync for Nya
impl Unpin for Nya
impl UnwindSafe for Nya
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> EasyArgumentField for T where
T: EasyArgumentGroup,
impl<T> EasyArgumentField for T where
T: EasyArgumentGroup,
sourcefn 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. Read more
sourcefn 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. Read more