pub struct Nyas {
pub start_span: Span,
pub end_span: Span,
pub flags: Punctuated<Nya, Comma>,
}
Fields
start_span: Span
end_span: Span
flags: Punctuated<Nya, Comma>
Implementations
Trait Implementations
sourceimpl EasyArgumentField for Nyas
impl EasyArgumentField for Nyas
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 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: ParseStream<'_>
) -> Result<bool, Error>
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. 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
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more