fpr_cli

Trait Parse

Source
pub trait Parse
where Self: Sized + Display,
{ // Required methods fn parse(i: &Arg) -> Result<Self, ParseErr>; fn desc() -> &'static str; }

Required Methods§

Source

fn parse(i: &Arg) -> Result<Self, ParseErr>

Source

fn desc() -> &'static str

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.

Implementations on Foreign Types§

Source§

impl Parse for i32

Source§

fn parse(i: &Arg) -> Result<Self, ParseErr>

Source§

fn desc() -> &'static str

Source§

impl Parse for i64

Source§

fn parse(i: &Arg) -> Result<Self, ParseErr>

Source§

fn desc() -> &'static str

Source§

impl Parse for String

Source§

fn parse(i: &Arg) -> Result<Self, ParseErr>

Source§

fn desc() -> &'static str

Implementors§