pub enum NormalForm {
Nfc,
Nfd,
Nfkc,
Nfkd,
}Expand description
The four normal forms. K is for compatibility, which the standard
spells with a K because C was taken.
Variants§
Implementations§
Source§impl NormalForm
impl NormalForm
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The spelling GQL uses, which is also the spelling UAX 15 uses.
Sourcepub fn from_name(word: &str) -> Option<NormalForm>
pub fn from_name(word: &str) -> Option<NormalForm>
The form a word names, or None for a word that names none. The
comparison is case-insensitive because the parser hands over what
the statement wrote and GQL keywords are not case-sensitive.
Trait Implementations§
Source§impl Clone for NormalForm
impl Clone for NormalForm
impl Copy for NormalForm
Source§impl Debug for NormalForm
impl Debug for NormalForm
impl Eq for NormalForm
Source§impl Hash for NormalForm
impl Hash for NormalForm
Source§impl PartialEq for NormalForm
impl PartialEq for NormalForm
impl StructuralPartialEq for NormalForm
Auto Trait Implementations§
impl Forget for NormalForm
impl Freeze for NormalForm
impl Move for NormalForm
impl RefUnwindSafe for NormalForm
impl Send for NormalForm
impl Sync for NormalForm
impl Unpin for NormalForm
impl UnsafeUnpin for NormalForm
impl UnwindSafe for NormalForm
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