Enum Byte

Source
#[repr(u8)]
pub enum Byte {
Show 33 variants TT = 69, YAE = 79, YE = 80, PP = 81, KK = 82, SS = 84, JJ = 87, M = 97, YU = 98, CH = 99, NG = 100, D = 101, R = 102, H = 103, O = 104, YA = 105, EO = 106, A = 107, I = 108, EU = 109, U = 110, AE = 111, E = 112, B = 113, G = 114, N = 115, S = 116, YEO = 117, P = 118, J = 119, T = 120, YO = 121, K = 122,
}
Expand description

This is the intermediate representation of the Buffer input. Its TryFrom implementations also act as input validators. Any input that is successfully converted to Byte is a valid modern Hangul Jamo.

Variants§

§

TT = 69

E

§

YAE = 79

O

§

YE = 80

P

§

PP = 81

Q

§

KK = 82

R

§

SS = 84

T

§

JJ = 87

W

§

M = 97

a

§

YU = 98

b

§

CH = 99

c

§

NG = 100

d

§

D = 101

e

§

R = 102

f

§

H = 103

g

§

O = 104

h

§

YA = 105

i

§

EO = 106

j

§

A = 107

k

§

I = 108

l

§

EU = 109

m

§

U = 110

n

§

AE = 111

o

§

E = 112

p

§

B = 113

q

§

G = 114

r

§

N = 115

s

§

S = 116

t

§

YEO = 117

u

§

P = 118

v

§

J = 119

w

§

T = 120

x

§

YO = 121

y

§

K = 122

z

Implementations§

Source§

impl Byte

Source

pub fn is_consonant(&self) -> bool

Source

pub fn is_vowel(&self) -> bool

Trait Implementations§

Source§

impl Clone for Byte

Source§

fn clone(&self) -> Byte

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Byte

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl TryFrom<char> for Byte

Source§

type Error = char

The type returned in the event of a conversion error.
Source§

fn try_from(c: char) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u8> for Byte

Source§

type Error = u8

The type returned in the event of a conversion error.
Source§

fn try_from(byte: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for Byte

Auto Trait Implementations§

§

impl Freeze for Byte

§

impl RefUnwindSafe for Byte

§

impl Send for Byte

§

impl Sync for Byte

§

impl Unpin for Byte

§

impl UnwindSafe for Byte

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.