pub enum PregError {
None,
Internal,
BacktrackLimit,
RecursionLimit,
BadUtf8,
BadUtf8Offset,
JitStackLimit,
}Expand description
preg_last_error().
Variants§
None
PREG_NO_ERROR.
Internal
PREG_INTERNAL_ERROR.
BacktrackLimit
PREG_BACKTRACK_LIMIT_ERROR: pcre.backtrack_limit was reached.
RecursionLimit
PREG_RECURSION_LIMIT_ERROR: pcre.recursion_limit was reached.
BadUtf8
PREG_BAD_UTF8_ERROR: the subject is not valid UTF-8.
BadUtf8Offset
PREG_BAD_UTF8_OFFSET_ERROR: the offset is inside a UTF-8 character.
JitStackLimit
PREG_JIT_STACKLIMIT_ERROR: the JIT stack ran out.
Implementations§
Trait Implementations§
impl Copy for PregError
impl Eq for PregError
impl StructuralPartialEq for PregError
Auto Trait Implementations§
impl Forget for PregError
impl Freeze for PregError
impl Move for PregError
impl RefUnwindSafe for PregError
impl Send for PregError
impl Sync for PregError
impl Unpin for PregError
impl UnsafeUnpin for PregError
impl UnwindSafe for PregError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.