pub enum SliceExpressionError {
ParseError {
message: String,
source: String,
},
InvalidExpression {
message: String,
source: String,
},
}Expand description
Common Parse Error.
Variants§
Implementations§
Source§impl SliceExpressionError
impl SliceExpressionError
Sourcepub fn parse_error(
message: impl Into<String>,
source: impl Into<String>,
) -> Self
pub fn parse_error( message: impl Into<String>, source: impl Into<String>, ) -> Self
Constructs a new ParseError.
This function is a utility for creating instances where a parsing error needs to be represented, encapsulating a descriptive error message and the source of the error.
§Parameters
message: A value that can be converted into aString, representing a human-readable description of the parsing error.source: A value that can be converted into aString, typically identifying the origin or input that caused the parsing error.
Sourcepub fn invalid_expression(
message: impl Into<String>,
source: impl Into<String>,
) -> Self
pub fn invalid_expression( message: impl Into<String>, source: impl Into<String>, ) -> Self
Creates a new InvalidExpression.
§Parameters
message: A detailed message describing the nature of the invalid expression. Accepts any type that can be converted into aString.source: The source or context in which the invalid expression occurred. Accepts any type that can be converted into aString.
Trait Implementations§
Source§impl Clone for SliceExpressionError
impl Clone for SliceExpressionError
Source§fn clone(&self) -> SliceExpressionError
fn clone(&self) -> SliceExpressionError
Returns a duplicate 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 SliceExpressionError
impl Debug for SliceExpressionError
Source§impl PartialEq for SliceExpressionError
impl PartialEq for SliceExpressionError
impl Eq for SliceExpressionError
impl StructuralPartialEq for SliceExpressionError
Auto Trait Implementations§
impl Freeze for SliceExpressionError
impl RefUnwindSafe for SliceExpressionError
impl Send for SliceExpressionError
impl Sync for SliceExpressionError
impl Unpin for SliceExpressionError
impl UnwindSafe for SliceExpressionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.