Trait FromCommandLine

Source
pub trait FromCommandLine: Sized {
    // Required method
    fn from_argument(s: &str) -> Result<Self, String>;
}

Required Methods§

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 FromCommandLine for SocketAddr

Source§

impl FromCommandLine for bool

Source§

impl FromCommandLine for f32

Source§

impl FromCommandLine for f64

Source§

impl FromCommandLine for i8

Source§

impl FromCommandLine for i16

Source§

impl FromCommandLine for i32

Source§

impl FromCommandLine for i64

Source§

impl FromCommandLine for isize

Source§

impl FromCommandLine for u8

Source§

impl FromCommandLine for u16

Source§

impl FromCommandLine for u32

Source§

impl FromCommandLine for u64

Source§

impl FromCommandLine for usize

Source§

impl FromCommandLine for String

Source§

impl FromCommandLine for Ipv4Addr

Source§

impl FromCommandLine for Ipv6Addr

Source§

impl FromCommandLine for PathBuf

Implementors§