Trait shiratsu_naming::naming::TokenizedName [−][src]
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.
Implementors
impl<'a> TokenizedName<'a, GoodToolsToken<'a>> for GoodToolsName<'a>
[src]
fn title(&self) -> Option<&'a str>
[src]
fn iter(&self) -> Iter<'_, GoodToolsToken<'a>>
[src]
fn try_parse<S: AsRef<str> + ?Sized>(
input: &'a S
) -> Result<GoodToolsName<'a>, NameError>
[src]
input: &'a S
) -> Result<GoodToolsName<'a>, NameError>
fn naming_convention() -> NamingConvention
[src]
impl<'a> TokenizedName<'a, NoIntroToken<'a>> for NoIntroName<'a>
[src]
fn title(&self) -> Option<&'a str>
[src]
fn iter(&self) -> Iter<'_, NoIntroToken<'a>>
[src]
fn try_parse<S: AsRef<str> + ?Sized>(
input: &'a S
) -> Result<NoIntroName<'a>, NameError>
[src]
input: &'a S
) -> Result<NoIntroName<'a>, NameError>