Trait FromPlain

Source
pub trait FromPlain: Sized {
    type Err;

    // Required method
    fn from_plain(s: &str) -> Result<Self, Self::Err>;
}
Expand description

Parse a value from its Conjure PLAIN string representation.

Required Associated Types§

Source

type Err

The error type returned when parsing fails.

Required Methods§

Source

fn from_plain(s: &str) -> Result<Self, Self::Err>

Parse a value from its Conjure PLAIN string representation.

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 FromPlain for bool

Source§

impl FromPlain for f64

Source§

impl FromPlain for i32

Source§

type Err = <i32 as FromStr>::Err

Source§

fn from_plain(s: &str) -> Result<Self, Self::Err>

Source§

impl FromPlain for String

Source§

type Err = <String as FromStr>::Err

Source§

fn from_plain(s: &str) -> Result<Self, Self::Err>

Implementors§