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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromPlain for bool

§

type Err = <bool as FromStr>::Err

source§

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

source§

impl FromPlain for f64

source§

impl FromPlain for i32

§

type Err = <i32 as FromStr>::Err

source§

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

source§

impl FromPlain for String

§

type Err = <String as FromStr>::Err

source§

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

Implementors§