Enum sre_engine::constants::SreAtCode
source · [−]#[repr(u32)]
pub enum SreAtCode {
BEGINNING,
BEGINNING_LINE,
BEGINNING_STRING,
BOUNDARY,
NON_BOUNDARY,
END,
END_LINE,
END_STRING,
LOC_BOUNDARY,
LOC_NON_BOUNDARY,
UNI_BOUNDARY,
UNI_NON_BOUNDARY,
}
Variants
BEGINNING
BEGINNING_LINE
BEGINNING_STRING
BOUNDARY
NON_BOUNDARY
END
END_LINE
END_STRING
LOC_BOUNDARY
LOC_NON_BOUNDARY
UNI_BOUNDARY
UNI_NON_BOUNDARY
Trait Implementations
sourceimpl TryFrom<u32> for SreAtCode
impl TryFrom<u32> for SreAtCode
type Error = TryFromPrimitiveError<SreAtCode>
type Error = TryFromPrimitiveError<SreAtCode>
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 SreAtCode
impl TryFromPrimitive for SreAtCode
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations
impl RefUnwindSafe for SreAtCode
impl Send for SreAtCode
impl Sync for SreAtCode
impl Unpin for SreAtCode
impl UnwindSafe for SreAtCode
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