pub enum IdentityXPathError {
Lex(IdXPathLexError),
Parse {
message: String,
position: usize,
},
UnboundPrefix {
prefix: String,
position: usize,
},
Restriction {
message: String,
position: usize,
},
}Expand description
Error produced during identity-constraint XPath compilation.
Variants§
Lex(IdXPathLexError)
Lexer error (invalid character, unsupported syntax).
Parse
Parser error (unexpected token, malformed expression).
UnboundPrefix
Unbound namespace prefix.
Restriction
Restriction violation (e.g. attribute step in selector, attribute not last).
Trait Implementations§
Source§impl Clone for IdentityXPathError
impl Clone for IdentityXPathError
Source§fn clone(&self) -> IdentityXPathError
fn clone(&self) -> IdentityXPathError
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 IdentityXPathError
impl Debug for IdentityXPathError
Source§impl Display for IdentityXPathError
impl Display for IdentityXPathError
Source§impl Error for IdentityXPathError
impl Error for IdentityXPathError
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<IdXPathLexError> for IdentityXPathError
impl From<IdXPathLexError> for IdentityXPathError
Source§fn from(e: IdXPathLexError) -> Self
fn from(e: IdXPathLexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IdentityXPathError
impl RefUnwindSafe for IdentityXPathError
impl Send for IdentityXPathError
impl Sync for IdentityXPathError
impl Unpin for IdentityXPathError
impl UnsafeUnpin for IdentityXPathError
impl UnwindSafe for IdentityXPathError
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