pub enum DbcError {
Show 16 variants
ExpectedEmpty(Rule),
ExpectedRule(Rule, Rule),
ExpectedOneOfRules(Vec<Rule>, Rule),
ExpectedStrNumber(Rule),
InvalidFloat(String),
InvalidInt(String),
InvalidUint(String),
MessageIdOutOfRange(u64),
MultipleMultiplexors,
NoMoreRules,
NotImplemented(&'static str),
Pest(Box<Error<Rule>>),
SignalWithoutMessage,
UnknownMultiplexIndicator(String),
UnknownRule(Rule),
InvalidNumericValue(String),
}Expand description
Error type for DBC parsing operations
Variants§
ExpectedEmpty(Rule)
ExpectedRule(Rule, Rule)
ExpectedOneOfRules(Vec<Rule>, Rule)
ExpectedStrNumber(Rule)
InvalidFloat(String)
InvalidInt(String)
InvalidUint(String)
MessageIdOutOfRange(u64)
MultipleMultiplexors
NoMoreRules
NotImplemented(&'static str)
Pest(Box<Error<Rule>>)
SignalWithoutMessage
UnknownMultiplexIndicator(String)
UnknownRule(Rule)
InvalidNumericValue(String)
Trait Implementations§
Source§impl Error for DbcError
impl Error for DbcError
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()
impl StructuralPartialEq for DbcError
Auto Trait Implementations§
impl Freeze for DbcError
impl RefUnwindSafe for DbcError
impl Send for DbcError
impl Sync for DbcError
impl Unpin for DbcError
impl UnwindSafe for DbcError
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