[][src]Struct kanji::Hiragana

pub struct Hiragana(_);

A Hiragana character, from あ to ん.

These are learned first by Japanese school children and foreign learners, and are used most often for grammatical word endings and prepositions. Some women's first names are written purely in Hiragana, as the characters themselves have a soft, flowing feel to them (very much unlike the blocky, angular Katakana).

Implementations

impl Hiragana[src]

pub fn new(c: char) -> Option<Hiragana>[src]

Attempt to form a Hiragana. Will fail if the given char is out of the expected Unicode range.

use kanji::Hiragana;

assert_eq!(Some('あ'), Hiragana::new('あ').map(|k| k.get()));
assert_eq!(None, Hiragana::new('鼠'));
assert_eq!(None, Hiragana::new('a'));

pub fn get(&self) -> char[src]

Pull out the inner char.

Trait Implementations

impl Clone for Hiragana[src]

impl Copy for Hiragana[src]

impl Debug for Hiragana[src]

impl Eq for Hiragana[src]

impl Hash for Hiragana[src]

impl Ord for Hiragana[src]

impl PartialEq<Hiragana> for Hiragana[src]

impl PartialOrd<Hiragana> for Hiragana[src]

impl StructuralEq for Hiragana[src]

impl StructuralPartialEq for Hiragana[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.