pub enum Refusal {
UnsupportedSyntax,
PatternTooLong,
NestedQuantifier,
OverlappingAlternation,
AdjacentOverlap,
}Expand description
Why a pattern was refused, with the specification’s reason names.
Variants§
UnsupportedSyntax
It does not parse in the dialect, or uses a construct the dialect leaves out.
PatternTooLong
Longer than MAX_PATTERN_CODE_POINTS (safety rule 1).
NestedQuantifier
A repeated subexpression contains an unbounded quantifier (rule 2).
OverlappingAlternation
An unbounded repetition of alternatives that can start alike (rule 3).
AdjacentOverlap
Adjacent unbounded atoms that can match the same character (rule 4).
Implementations§
Trait Implementations§
impl Copy for Refusal
impl Eq for Refusal
impl StructuralPartialEq for Refusal
Auto Trait Implementations§
impl Forget for Refusal
impl Freeze for Refusal
impl Move for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.