Struct jp_inflections::syllable::Syllable [−][src]
pub struct Syllable(_);
Expand description
One single syllable within the a kana alphabet
Implementations
Returns true
if the syllable ends with or equals a given Umlaut
Examples
use jp_inflections::syllable::Syllable;
use jp_inflections::umlaut::Umlaut;
assert!(Syllable::from("が").ends_with(Umlaut::A));
assert!(!Syllable::from('ぬ').ends_with(Umlaut::A));
Returns an Some(Info)
based on the syllable, or None if its not a valid syllable
Examples
use jp_inflections::syllable::{Syllable, Info, Row};
use jp_inflections::umlaut::Umlaut;
let s = Syllable::from('が');
assert_eq!(s.get_info(), Some(Info { row: Row::G, umlaut: Umlaut::A }));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Syllable
impl UnwindSafe for Syllable
Blanket Implementations
Mutably borrows from an owned value. Read more