Enum ca_rules::ParseRuleError
source · pub enum ParseRuleError {
Missing(char),
MissingNumber,
Unexpected(char),
ExtraJunk,
GenLessThan2,
NotMapRule,
Base64Error,
InvalidLength,
GenOverflow,
}
Expand description
Errors that can be returned when parsing rule strings.
Variants§
Missing(char)
Missing expected {0:?}
MissingNumber
Missing expected number
Unexpected(char)
Unexpected {0:?}
ExtraJunk
Extra unparsed junk at the end of the rule string
GenLessThan2
Number of states less than 2 in Generations rule
NotMapRule
Not a MAP rule
Base64Error
Invalid Base64 encoding for MAP rule
InvalidLength
Invalid length for MAP rule
GenOverflow
Generations number overflow for Generations rule
Trait Implementations§
source§impl Clone for ParseRuleError
impl Clone for ParseRuleError
source§fn clone(&self) -> ParseRuleError
fn clone(&self) -> ParseRuleError
Returns a copy of the value. Read more
1.0.0 · 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 ParseRuleError
impl Debug for ParseRuleError
source§impl Display for ParseRuleError
impl Display for ParseRuleError
source§impl Error for ParseRuleError
impl Error for ParseRuleError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl PartialEq for ParseRuleError
impl PartialEq for ParseRuleError
source§fn eq(&self, other: &ParseRuleError) -> bool
fn eq(&self, other: &ParseRuleError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseRuleError
impl StructuralEq for ParseRuleError
impl StructuralPartialEq for ParseRuleError
Auto Trait Implementations§
impl RefUnwindSafe for ParseRuleError
impl Send for ParseRuleError
impl Sync for ParseRuleError
impl Unpin for ParseRuleError
impl UnwindSafe for ParseRuleError
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