ArgumentSetMethods

Trait ArgumentSetMethods 

Source
pub trait ArgumentSetMethods: Copy + Sized {
    type Field: Sized;

    // Required method
    fn parse(
        self,
        args: &mut ArgumentStream<'_>,
        field: &'static str,
    ) -> Result<Self::Field, EP>;
}
Available on crate feature parse2 only.
Expand description

Method for handling some multiplicity of Arguments

For use by macros.

See ArgumentSetSelector and the module-level docs.

Required Associated Types§

Source

type Field: Sized

The output type: the type of the field in the Item struct.

This is not the type of an individual netdoc argument; that is not explicity represented in the trait.

Required Methods§

Source

fn parse( self, args: &mut ArgumentStream<'_>, field: &'static str, ) -> Result<Self::Field, EP>

Parse zero or more argument(s) into Self::Field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§