[][src]Trait diplomacy::parser::FromWords

pub trait FromWords: Sized {
    type Err;
    fn from_words(w: &[&str]) -> Result<Self, Self::Err>;
}

A parser which operates on whitespace-delimited words from an input string.

Associated Types

type Err

The associated error which can be returned from parsing.

Loading content...

Required methods

fn from_words(w: &[&str]) -> Result<Self, Self::Err>

Performs the conversion.

Loading content...

Implementors

impl FromWords for BuildCommand[src]

type Err = Error

impl<L: Location + FromStr<Err = Error>> FromWords for MainCommand<L>[src]

type Err = Error

impl<L: Location + FromStr<Err = Error>> FromWords for RetreatCommand<L>[src]

type Err = Error

impl<L: Location + FromStr<Err = Error>> FromWords for SupportedOrder<L>[src]

type Err = Error

impl<L: Location + FromStr<Err = Error>> FromWords for ConvoyedMove<L>[src]

type Err = Error

impl<L: Location + FromStr<Err = Error>> FromWords for MoveCommand<L>[src]

type Err = Error

Loading content...