pub struct ElementStartView<'a> {
pub local_name: &'a str,
pub namespace_uri: &'a str,
pub prefix: &'a str,
pub xsi_type: Option<&'a str>,
pub xsi_nil: Option<&'a str>,
pub ns_context: &'a NamespaceContextSnapshot,
pub namespace_decls: &'a [(&'a str, &'a str)],
pub is_empty: bool,
}Expand description
View of an element-start (or empty) event passed to handler hooks.
Borrowed slices live until the next read_event_into call, so hooks must
not retain references past their return.
Fields§
§local_name: &'a str§namespace_uri: &'a str§prefix: &'a str§xsi_type: Option<&'a str>Lexical value of xsi:type, if present.
xsi_nil: Option<&'a str>Lexical value of xsi:nil, if present.
ns_context: &'a NamespaceContextSnapshotPre-built snapshot used for QName resolution inside the runtime.
namespace_decls: &'a [(&'a str, &'a str)]xmlns declarations on THIS element (prefix, uri). Empty prefix is the default-namespace declaration.
is_empty: booltrue if this came from Event::Empty.
Trait Implementations§
Source§impl<'a> Clone for ElementStartView<'a>
impl<'a> Clone for ElementStartView<'a>
Source§fn clone(&self) -> ElementStartView<'a>
fn clone(&self) -> ElementStartView<'a>
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 moreimpl<'a> Copy for ElementStartView<'a>
Auto Trait Implementations§
impl<'a> Freeze for ElementStartView<'a>
impl<'a> RefUnwindSafe for ElementStartView<'a>
impl<'a> Send for ElementStartView<'a>
impl<'a> Sync for ElementStartView<'a>
impl<'a> Unpin for ElementStartView<'a>
impl<'a> UnsafeUnpin for ElementStartView<'a>
impl<'a> UnwindSafe for ElementStartView<'a>
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