pub enum SolveVariantError {
NoMatch,
Parser(ParseError),
SchemaError(SchemaError),
}Expand description
Error when variant solving fails.
Variants§
NoMatch
No variant matched the evidence.
Parser(ParseError)
Parser error while reading events.
SchemaError(SchemaError)
Schema construction error.
Implementations§
Source§impl SolveVariantError
impl SolveVariantError
Sourcepub const fn from_parser(e: ParseError) -> Self
pub const fn from_parser(e: ParseError) -> Self
Wrap a parse error into SolveVariantError::Parser.
Trait Implementations§
Source§impl Debug for SolveVariantError
impl Debug for SolveVariantError
Source§impl Display for SolveVariantError
impl Display for SolveVariantError
Source§impl Error for SolveVariantError
impl Error for SolveVariantError
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()
Source§impl From<SchemaError> for SolveVariantError
impl From<SchemaError> for SolveVariantError
Source§fn from(e: SchemaError) -> Self
fn from(e: SchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SolveVariantError
impl RefUnwindSafe for SolveVariantError
impl Send for SolveVariantError
impl Sync for SolveVariantError
impl Unpin for SolveVariantError
impl UnsafeUnpin for SolveVariantError
impl UnwindSafe for SolveVariantError
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