pub struct Extension {
pub ns: String,
pub local: String,
pub value: ExtensionValue,
pub position: u32,
pub span: Span,
}Expand description
An attribute or element from the vt: namespace or a foreign namespace, kept on its owner.
Fields§
§ns: StringNamespace IRI.
local: StringLocal name.
value: ExtensionValueAttribute value or element content.
position: u32For elements: the index among the owner’s element children at which it appeared. For attributes: 0.
span: SpanSource location.
Trait Implementations§
impl Eq for Extension
impl StructuralPartialEq for Extension
Auto Trait Implementations§
impl Forget for Extension
impl Freeze for Extension
impl Move for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnsafeUnpin for Extension
impl UnwindSafe for Extension
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