pub struct XPathCatch {
pub matchers: Vec<CatchNameTest>,
pub body: Expr,
}Expand description
One catch clause of an Expr::TryCatch. The grammar is
"catch" NameTest ("|" NameTest)* "{" Expr "}", with "*"
allowed as a catch-all in place of a specific QName.
Fields§
§matchers: Vec<CatchNameTest>QName matchers from the catch clause’s name list. An
empty list (or a single Any) is catch-all.
body: ExprBody expression to evaluate when this clause matches.
Trait Implementations§
Source§impl Clone for XPathCatch
impl Clone for XPathCatch
Source§fn clone(&self) -> XPathCatch
fn clone(&self) -> XPathCatch
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 moreAuto Trait Implementations§
impl Freeze for XPathCatch
impl RefUnwindSafe for XPathCatch
impl Send for XPathCatch
impl Sync for XPathCatch
impl Unpin for XPathCatch
impl UnsafeUnpin for XPathCatch
impl UnwindSafe for XPathCatch
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