pub enum SelectError {
Expression(ExpressionError),
Malformed {
selector: String,
kind: &'static str,
message: String,
},
Empty {
selector: String,
context: String,
},
Unsupported(&'static str),
}Expand description
Why a value could not be produced.
Variants§
Expression(ExpressionError)
A runtime expression in the value could not be evaluated.
Malformed
The selector expression itself is malformed.
Fields
Empty
The selector is valid but picked nothing.
Fields
Unsupported(&'static str)
XPath: no engine here, and pretending otherwise would be worse.
Trait Implementations§
Source§impl Clone for SelectError
impl Clone for SelectError
Source§fn clone(&self) -> SelectError
fn clone(&self) -> SelectError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SelectError
impl Debug for SelectError
Source§impl Display for SelectError
impl Display for SelectError
impl Eq for SelectError
Source§impl Error for SelectError
impl Error for SelectError
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<ExpressionError> for SelectError
impl From<ExpressionError> for SelectError
Source§fn from(source: ExpressionError) -> Self
fn from(source: ExpressionError) -> Self
Converts to this type from the input type.
Source§impl From<SelectError> for CriterionError
impl From<SelectError> for CriterionError
Source§fn from(source: SelectError) -> Self
fn from(source: SelectError) -> Self
Converts to this type from the input type.
Source§impl From<SelectError> for ExecutionError
impl From<SelectError> for ExecutionError
Source§fn from(source: SelectError) -> Self
fn from(source: SelectError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SelectError
impl PartialEq for SelectError
impl StructuralPartialEq for SelectError
Auto Trait Implementations§
impl Freeze for SelectError
impl RefUnwindSafe for SelectError
impl Send for SelectError
impl Sync for SelectError
impl Unpin for SelectError
impl UnsafeUnpin for SelectError
impl UnwindSafe for SelectError
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