pub struct Arg {
    pub arg: arg,
    pub foobar: FooBar,
}
Expand description

Baz

Fields

arg: argfoobar: FooBar

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 attribute name for display purposes.

Returns attribute name for display purposes.

Peek head token before parsing.

Peek head token before parsing.

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

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

Returns the argument unchanged.

Calls U::from(self).

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

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.