[][src]Struct kanji::AlphaNum

pub struct AlphaNum(_);

Japanese full-width alphanumeric characters and a few punctuation symbols.

Implementations

impl AlphaNum[src]

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

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

use kanji::AlphaNum;

assert_eq!(Some('A'), AlphaNum::new('A').map(|k| k.get()));
assert_eq!(Some('*'), AlphaNum::new('*').map(|k| k.get()));
assert_eq!(None, AlphaNum::new('a'));

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

Pull out the inner char.

Trait Implementations

impl Clone for AlphaNum[src]

impl Copy for AlphaNum[src]

impl Debug for AlphaNum[src]

impl Eq for AlphaNum[src]

impl Hash for AlphaNum[src]

impl Ord for AlphaNum[src]

impl PartialEq<AlphaNum> for AlphaNum[src]

impl PartialOrd<AlphaNum> for AlphaNum[src]

impl StructuralEq for AlphaNum[src]

impl StructuralPartialEq for AlphaNum[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.