Parse

Trait Parse 

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

Required Methods§

Source

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

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<'a> Parse<'a> for i32

Source§

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

Source§

fn desc() -> &'static str

Source§

impl<'a> Parse<'a> for i64

Source§

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

Source§

fn desc() -> &'static str

Source§

impl<'a> Parse<'a> for String

Source§

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

Source§

fn desc() -> &'static str

Implementors§

Source§

impl<'a> Parse<'a> for DirExist

Source§

impl<'a> Parse<'a> for FileExist