#[non_exhaustive]pub enum DfaCompileError {
TooLarge {
requested_bytes: usize,
budget_bytes: usize,
state_count: u32,
},
TrieStateCapExceeded {
state_cap: usize,
},
}Expand description
Structured failure from dfa_compile_with_budget.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooLarge
Built DFA would exceed the caller’s transition-table budget.
Fields
TrieStateCapExceeded
Trie grew past the permitted state cap during construction.
Trait Implementations§
Source§impl Clone for DfaCompileError
impl Clone for DfaCompileError
Source§fn clone(&self) -> DfaCompileError
fn clone(&self) -> DfaCompileError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DfaCompileError
impl Debug for DfaCompileError
Source§impl Display for DfaCompileError
impl Display for DfaCompileError
Source§impl Error for DfaCompileError
impl Error for DfaCompileError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DfaCompileError
impl RefUnwindSafe for DfaCompileError
impl Send for DfaCompileError
impl Sync for DfaCompileError
impl Unpin for DfaCompileError
impl UnsafeUnpin for DfaCompileError
impl UnwindSafe for DfaCompileError
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