pub struct ElementTest {
pub name: Option<QName>,
pub type_name: Option<QName>,
pub nillable: bool,
}Expand description
Element test: element(), element(name), or element(name, type).
Fields§
§name: Option<QName>Element name (None = wildcard).
type_name: Option<QName>Type annotation (None = any type).
nillable: boolWhether the type allows nilled elements.
Trait Implementations§
Source§impl Clone for ElementTest
impl Clone for ElementTest
Source§fn clone(&self) -> ElementTest
fn clone(&self) -> ElementTest
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 ElementTest
impl Debug for ElementTest
Source§impl Default for ElementTest
impl Default for ElementTest
Source§fn default() -> ElementTest
fn default() -> ElementTest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ElementTest
impl RefUnwindSafe for ElementTest
impl Send for ElementTest
impl Sync for ElementTest
impl Unpin for ElementTest
impl UnsafeUnpin for ElementTest
impl UnwindSafe for ElementTest
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