pub struct Arg {
pub arg: arg,
pub foobar: FooBar,
}
Expand description
Baz
Fields§
§arg: arg
§foobar: FooBar
Trait Implementations§
Source§impl EasyArgument for Arg
impl EasyArgument for Arg
Source§impl EasyPeek for Arg
impl EasyPeek for Arg
Source§fn peek(lookahead1: &Lookahead1<'_>) -> bool
fn peek(lookahead1: &Lookahead1<'_>) -> bool
Peek head token before parsing.
Source§fn peek_stream(stream: ParseStream<'_>) -> bool
fn peek_stream(stream: ParseStream<'_>) -> bool
Peek head token before parsing.
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl !Send for Arg
impl !Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
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> EasyArgumentGroup for Twhere
T: EasyArgument,
impl<T> EasyArgumentGroup for Twhere
T: EasyArgument,
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 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: &T) -> Error
fn overlap_error(&self, other: &T) -> 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.