pub enum Orthography {
Lowercase = 1,
Titlecase = 2,
AllCaps = 4,
LowerCamel = 8,
UpperCamel = 16,
Multiword = 32,
Hyphenated = 64,
Apostrophe = 128,
RomanNumerals = 256,
}Expand description
Orthography information.
Variants§
Lowercase = 1
Every char that is a letter is lowercase.
Titlecase = 2
First char is uppercase, the rest is lowercase (but multi-word?)
AllCaps = 4
Every char that is a letter is uppercase (including single-letter uppercase)
LowerCamel = 8
Starts with a lowercase letter but also contains uppercase letters.
UpperCamel = 16
Starts with an uppercase letter but also contains lowercase letters. (Superset of Titlecase.)
Multiword = 32
Contains at least one space.
Hyphenated = 64
Contains at least one hyphen.
Apostrophe = 128
Contains an apostrophe, so it’s a possessive or a contraction.
RomanNumerals = 256
Could be Roman numerals.
Auto Trait Implementations§
impl Freeze for Orthography
impl RefUnwindSafe for Orthography
impl Send for Orthography
impl Sync for Orthography
impl Unpin for Orthography
impl UnwindSafe for Orthography
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more