pub struct arg {
    pub span: Span,
}

Fields

span: Span

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Display the token for the user.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns attribute name for display purposes.

Returns attribute name for display purposes.

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

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

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. Read more

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

Produces error with appropriate message when the attribute group overlaps another instance. This is called by certain EasyArgumentField implementations. Read more

Produces error with appropriate message when the attribute group is missing. This is called by certain EasyArgumentField implementations. Read more

Peek head token before parsing.

Peek head token before parsing.

Returns the argument unchanged.

Calls U::from(self).

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

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.