pub struct Dom { /* private fields */ }Expand description
A parsed XTCE document: a flat arena of elements plus the interner backing every name.
Implementations§
Source§impl Dom
impl Dom
Sourcepub fn parse(input: &str) -> Result<Self, ParseError>
pub fn parse(input: &str) -> Result<Self, ParseError>
Parses an XTCE document from a UTF-8 string.
§Errors
Returns ParseError if the input is not well-formed XML or contains no root
element.
Sourcepub fn skipped_sections(&self) -> &[String]
pub fn skipped_sections(&self) -> &[String]
Names of sections dropped during parsing, in document order.
Auto Trait Implementations§
impl Forget for Dom
impl Freeze for Dom
impl Move for Dom
impl RefUnwindSafe for Dom
impl Send for Dom
impl Sync for Dom
impl Unpin for Dom
impl UnsafeUnpin for Dom
impl UnwindSafe for Dom
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