Enum sre_engine::constants::SreCatCode
source · [−]#[repr(u32)]
pub enum SreCatCode {
Show 18 variants
DIGIT,
NOT_DIGIT,
SPACE,
NOT_SPACE,
WORD,
NOT_WORD,
LINEBREAK,
NOT_LINEBREAK,
LOC_WORD,
LOC_NOT_WORD,
UNI_DIGIT,
UNI_NOT_DIGIT,
UNI_SPACE,
UNI_NOT_SPACE,
UNI_WORD,
UNI_NOT_WORD,
UNI_LINEBREAK,
UNI_NOT_LINEBREAK,
}
Variants
DIGIT
NOT_DIGIT
SPACE
NOT_SPACE
WORD
NOT_WORD
LINEBREAK
NOT_LINEBREAK
LOC_WORD
LOC_NOT_WORD
UNI_DIGIT
UNI_NOT_DIGIT
UNI_SPACE
UNI_NOT_SPACE
UNI_WORD
UNI_NOT_WORD
UNI_LINEBREAK
UNI_NOT_LINEBREAK
Trait Implementations
sourceimpl Debug for SreCatCode
impl Debug for SreCatCode
sourceimpl TryFrom<u32> for SreCatCode
impl TryFrom<u32> for SreCatCode
type Error = TryFromPrimitiveError<SreCatCode>
type Error = TryFromPrimitiveError<SreCatCode>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for SreCatCode
impl TryFromPrimitive for SreCatCode
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations
impl RefUnwindSafe for SreCatCode
impl Send for SreCatCode
impl Sync for SreCatCode
impl Unpin for SreCatCode
impl UnwindSafe for SreCatCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more