Enum aho_corasick::util::error::ErrorKind
source · enum ErrorKind {
StateIDOverflow {
max: u64,
requested_max: u64,
},
PatternIDOverflow {
max: u64,
requested_max: u64,
},
PatternTooLong {
pattern: PatternID,
len: usize,
},
}
Expand description
The kind of error that occurred.
Variants§
StateIDOverflow
An error that occurs when allocating a new state would result in an
identifier that exceeds the capacity of a StateID
.
PatternIDOverflow
An error that occurs when adding a pattern to an Aho-Corasick
automaton would result in an identifier that exceeds the capacity of a
PatternID
.
PatternTooLong
Occurs when a pattern string is given to the Aho-Corasick constructor that is too long.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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