pub struct ParsedAttribute {
pub namespace: Option<NameId>,
pub local_name: NameId,
pub prefix: Option<NameId>,
pub value: String,
pub source: Option<SourceRef>,
}Expand description
Parsed attribute value
Fields§
§namespace: Option<NameId>Namespace (None for unqualified attributes)
local_name: NameIdLocal name
prefix: Option<NameId>Prefix (for QName reconstruction)
value: StringValue as string
source: Option<SourceRef>Source location
Implementations§
Source§impl ParsedAttribute
impl ParsedAttribute
Sourcepub fn is_namespace_decl(
&self,
xmlns_prefix_id: NameId,
xmlns_ns_id: NameId,
) -> bool
pub fn is_namespace_decl( &self, xmlns_prefix_id: NameId, xmlns_ns_id: NameId, ) -> bool
Check if this is a namespace declaration (xmlns or xmlns:prefix)
Sourcepub fn is_xsd_attribute(&self, xsd_ns_id: NameId) -> bool
pub fn is_xsd_attribute(&self, xsd_ns_id: NameId) -> bool
Check if this is an XSD attribute
Trait Implementations§
Source§impl Clone for ParsedAttribute
impl Clone for ParsedAttribute
Source§fn clone(&self) -> ParsedAttribute
fn clone(&self) -> ParsedAttribute
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 ParsedAttribute
impl RefUnwindSafe for ParsedAttribute
impl Send for ParsedAttribute
impl Sync for ParsedAttribute
impl Unpin for ParsedAttribute
impl UnsafeUnpin for ParsedAttribute
impl UnwindSafe for ParsedAttribute
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