pub struct DocumentationElement {
pub source: Option<String>,
pub lang: Option<String>,
pub attributes: Vec<ForeignAttribute>,
pub namespaces: NamespaceContextSnapshot,
pub content: XmlFragment,
pub source_ref: Option<SourceRef>,
}Expand description
xs:documentation element
Contains human-readable documentation.
Fields§
§source: Option<String>Source URI attribute
lang: Option<String>Language attribute (xml:lang)
attributes: Vec<ForeignAttribute>Foreign attributes on the documentation element
namespaces: NamespaceContextSnapshotNamespace bindings in scope when this was parsed
content: XmlFragmentRaw XML content (not parsed)
source_ref: Option<SourceRef>Source location
Implementations§
Source§impl DocumentationElement
impl DocumentationElement
Sourcepub fn new(content: XmlFragment, namespaces: NamespaceContextSnapshot) -> Self
pub fn new(content: XmlFragment, namespaces: NamespaceContextSnapshot) -> Self
Create a new documentation element
Trait Implementations§
Source§impl Clone for DocumentationElement
impl Clone for DocumentationElement
Source§fn clone(&self) -> DocumentationElement
fn clone(&self) -> DocumentationElement
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 DocumentationElement
impl RefUnwindSafe for DocumentationElement
impl Send for DocumentationElement
impl Sync for DocumentationElement
impl Unpin for DocumentationElement
impl UnsafeUnpin for DocumentationElement
impl UnwindSafe for DocumentationElement
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