Skip to main content

POSTAG

Struct POSTAG 

Source
pub struct POSTAG;
Expand description

POS tag bit flags (identical numeric values to the TypeScript POSTAG enum).

Implementations§

Source§

impl POSTAG

Source

pub const BAD: u32 = 0x8000_0000

錯字

Source

pub const D_A: u32 = 0x4000_0000

形容詞

Source

pub const D_B: u32 = 0x2000_0000

區別詞

Source

pub const D_C: u32 = 0x1000_0000

連詞

Source

pub const D_D: u32 = 0x0800_0000

副詞

Source

pub const D_E: u32 = 0x0400_0000

嘆詞

Source

pub const D_F: u32 = 0x0200_0000

方位詞

Source

pub const D_I: u32 = 0x0100_0000

成語

Source

pub const D_L: u32 = 0x0080_0000

習語

Source

pub const A_M: u32 = 0x0040_0000

數詞

Source

pub const D_MQ: u32 = 0x0020_0000

數量詞

Source

pub const D_N: u32 = 0x0010_0000

名詞

Source

pub const D_O: u32 = 0x0008_0000

擬聲詞

Source

pub const D_P: u32 = 0x0004_0000

介詞

Source

pub const A_Q: u32 = 0x0002_0000

量詞

Source

pub const D_R: u32 = 0x0001_0000

代詞

Source

pub const D_S: u32 = 0x0000_8000

處所詞

Source

pub const D_T: u32 = 0x0000_4000

時間詞

Source

pub const D_U: u32 = 0x0000_2000

助詞

Source

pub const D_V: u32 = 0x0000_1000

動詞

Source

pub const D_W: u32 = 0x0000_0800

標點符號

Source

pub const D_X: u32 = 0x0000_0400

非語素字

Source

pub const D_Y: u32 = 0x0000_0200

語氣詞

Source

pub const D_Z: u32 = 0x0000_0100

狀態詞

Source

pub const A_NR: u32 = 0x0000_0080

人名

Source

pub const A_NS: u32 = 0x0000_0040

地名

Source

pub const A_NT: u32 = 0x0000_0020

機構團體

Source

pub const A_NX: u32 = 0x0000_0010

外文字符

Source

pub const A_NZ: u32 = 0x0000_0008

其他專名

Source

pub const D_ZH: u32 = 0x0000_0004

前接成分

Source

pub const D_K: u32 = 0x0000_0002

後接成分

Source

pub const URL: u32 = 0x0000_0001

網址、郵箱

Source

pub const UNK: u32 = 0x0000_0000

未知

Source

pub fn any(p: u32, flags: &[u32]) -> bool

True if p has any of the listed flags.

Trait Implementations§

Source§

impl Clone for POSTAG

Source§

fn clone(&self) -> POSTAG

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 Copy for POSTAG

Source§

impl Debug for POSTAG

Source§

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

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

impl Display for POSTAG

Source§

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

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

impl Eq for POSTAG

Source§

impl Hash for POSTAG

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for POSTAG

Source§

fn eq(&self, other: &POSTAG) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for POSTAG

Auto Trait Implementations§

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.