Skip to main content

Ctx

Struct Ctx 

Source
pub struct Ctx {
    pub t: i64,
    pub p: i64,
    pub a: i64,
    pub b: i64,
    pub c: i64,
    pub d: i64,
    pub e: i64,
    pub f: i64,
    pub o: i64,
}
Expand description

평가 문맥의 변수들. KeyTable 평가에는 T(오토마타 상태)와 P(수식어 비트마스크)가 쓰인다. 오토마타 식 평가에는 A~F(입력/조합 중 한글의 초·중·종성 서열번호), O, T 가 쓰인다. (오토마타 변수 의미는 research/ngs-automata-help.txt 참고.)

Fields§

§t: i64

오토마타 상태 id. 0 = 한글 조합 중이 아님. (T)

§p: i64

수식어 비트마스크. bit0 = Shift. (P)

§a: i64

A = 입력 글쇠의 초성 서열(없으면 0; 갈마들이 토글이면 500).

§b: i64

B = 입력 글쇠의 중성 서열.

§c: i64

C = 입력 글쇠의 종성 서열.

§d: i64

D = 조합 중 한글의 초성 서열.

§e: i64

E = 조합 중 한글의 중성 서열.

§f: i64

F = 조합 중 한글의 종성 서열.

§o: i64

O = 부가 비트(1 입력 두벌식 + 2 조합중 두벌식 + 4 인위생성). 세벌식이면 0.

Trait Implementations§

Source§

impl Clone for Ctx

Source§

fn clone(&self) -> Ctx

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Ctx

Source§

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

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

impl Default for Ctx

Source§

fn default() -> Ctx

Returns the “default value” for a type. Read more
Source§

impl Copy for Ctx

Auto Trait Implementations§

§

impl Freeze for Ctx

§

impl RefUnwindSafe for Ctx

§

impl Send for Ctx

§

impl Sync for Ctx

§

impl Unpin for Ctx

§

impl UnsafeUnpin for Ctx

§

impl UnwindSafe for Ctx

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.