Struct grammers_tl_parser::tl::Parameter[][src]

pub struct Parameter {
    pub name: String,
    pub ty: ParameterType,
}

A single parameter, with a name and a type.

Fields

name: String

The name of the parameter.

ty: ParameterType

The type of the parameter.

Trait Implementations

impl Debug for Parameter[src]

impl Display for Parameter[src]

impl FromStr for Parameter[src]

type Err = ParamParseError

The associated error which can be returned from parsing.

fn from_str(param: &str) -> Result<Self, Self::Err>[src]

Parses a parameter.

Examples

use grammers_tl_parser::tl::Parameter;

assert!("foo:flags.0?bar.Baz".parse::<Parameter>().is_ok());

impl PartialEq<Parameter> for Parameter[src]

impl StructuralPartialEq for Parameter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.