pub trait ItemArgumentParseable: Sized {
// Required method
fn from_args<'s>(
args: &mut ArgumentStream<'s>,
) -> Result<Self, ArgumentError>;
}Expand description
An (individual) argument that can be parsed from in a netdoc
An implementations is provided for T: FromStr,
which expects a single argument and passes it to FromStr.
For netdoc arguments whose specified syntax spans multiple space-separated words, use a manual implementation or a wrapper type.
Required Methods§
Sourcefn from_args<'s>(args: &mut ArgumentStream<'s>) -> Result<Self, ArgumentError>
fn from_args<'s>(args: &mut ArgumentStream<'s>) -> Result<Self, ArgumentError>
Parse the argument
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.