pub enum CreateEngineError {
EngineBaseError(CreateEngineBaseError),
GrammarError(CreateGrammarError),
EmptyGrammarError,
InvalidInputError,
}
Expand description
Represents the error type for the Engine
creation.
Variants§
EngineBaseError(CreateEngineBaseError)
A wrapper for the CreateEngineBaseError
error type.
GrammarError(CreateGrammarError)
A wrapper for the CreateGrammarError
error type.
EmptyGrammarError
The grammar is empty.
InvalidInputError
The grammar and/or config’s value range is not supported by the Engine.
Trait Implementations§
Source§impl Debug for CreateEngineError
impl Debug for CreateEngineError
Source§impl Display for CreateEngineError
impl Display for CreateEngineError
Source§impl Error for CreateEngineError
impl Error for CreateEngineError
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<CreateEngineBaseError> for CreateEngineError
impl From<CreateEngineBaseError> for CreateEngineError
Source§fn from(source: CreateEngineBaseError) -> Self
fn from(source: CreateEngineBaseError) -> Self
Converts to this type from the input type.
Source§impl From<CreateGrammarError> for CreateEngineError
impl From<CreateGrammarError> for CreateEngineError
Source§fn from(source: CreateGrammarError) -> Self
fn from(source: CreateGrammarError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateEngineError
impl RefUnwindSafe for CreateEngineError
impl Send for CreateEngineError
impl Sync for CreateEngineError
impl Unpin for CreateEngineError
impl UnwindSafe for CreateEngineError
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