pub struct XmlFragment {
pub doc_id: DocumentId,
pub span: SourceSpan,
}Expand description
XML fragment - raw XML content preserved from source
Used to capture the content of xs:appinfo and xs:documentation elements without parsing it, allowing later processing by consumers.
Fields§
§doc_id: DocumentIdDocument containing this fragment
span: SourceSpanByte span in the source document
Implementations§
Source§impl XmlFragment
impl XmlFragment
Sourcepub fn new(doc_id: DocumentId, span: SourceSpan) -> Self
pub fn new(doc_id: DocumentId, span: SourceSpan) -> Self
Create a new XML fragment reference
Sourcepub fn byte_range(&self) -> Range<usize>
pub fn byte_range(&self) -> Range<usize>
Get the byte range for this fragment
Trait Implementations§
Source§impl Clone for XmlFragment
impl Clone for XmlFragment
Source§fn clone(&self) -> XmlFragment
fn clone(&self) -> XmlFragment
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 XmlFragment
impl RefUnwindSafe for XmlFragment
impl Send for XmlFragment
impl Sync for XmlFragment
impl Unpin for XmlFragment
impl UnsafeUnpin for XmlFragment
impl UnwindSafe for XmlFragment
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