Trait shiratsu_naming::naming::TokenizedName[][src]

pub trait TokenizedName<'a, T> where
    Self: Display + From<Vec<T>> + PartialEq + Eq
{ fn title(&self) -> Option<&'a str>;
fn iter(&self) -> Iter<'_, T>;
fn try_parse<S: AsRef<str> + ?Sized>(
        input: &'a S
    ) -> Result<Self, NameError>;
fn naming_convention() -> NamingConvention; }

A name that is tokenized according to some naming convention.

Required methods

fn title(&self) -> Option<&'a str>[src]

Get the title of the tokenized name.

fn iter(&self) -> Iter<'_, T>[src]

Returns an iterator over the tokens of this name.

fn try_parse<S: AsRef<str> + ?Sized>(input: &'a S) -> Result<Self, NameError>[src]

Tries to parse the input string using the naming convention of this tokenized name.

Returns NameError::ParseError if parsing fails.

fn naming_convention() -> NamingConvention[src]

The naming convention of this tokenized name.

Loading content...

Implementors

impl<'a> TokenizedName<'a, GoodToolsToken<'a>> for GoodToolsName<'a>[src]

impl<'a> TokenizedName<'a, NoIntroToken<'a>> for NoIntroName<'a>[src]

impl<'a> TokenizedName<'a, TOSECToken<'a>> for TOSECName<'a>[src]

Loading content...