Trait shiratsu_naming::naming::TokenizedName
source · [−]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;
}
Expand description
A name that is tokenized according to some naming convention.
Required methods
Tries to parse the input string using the naming convention of this tokenized name.
Returns NameError::ParseError
if parsing fails.
The naming convention of this tokenized name.