pub struct Declaration<'a> { /* private fields */ }Implementations§
Source§impl Declaration<'_>
impl Declaration<'_>
pub fn version(&self) -> XMLVersion
pub fn encoding(&self) -> Option<&str>
Sourcepub fn is_standalone(&self) -> bool
pub fn is_standalone(&self) -> bool
If explicitly set to standalone='yes', returns true.
If standalone='no' or no standalone declaration exists, returns false.
Sourcepub fn standalone(&self) -> Option<bool>
pub fn standalone(&self) -> Option<bool>
If the standalone declaration exists, return a Some wrapping a Boolean value corresponding
to that declaration.
If no standalone declaration exists, return None.
Auto Trait Implementations§
impl<'a> Freeze for Declaration<'a>
impl<'a> RefUnwindSafe for Declaration<'a>
impl<'a> Send for Declaration<'a>
impl<'a> Sync for Declaration<'a>
impl<'a> Unpin for Declaration<'a>
impl<'a> UnwindSafe for Declaration<'a>
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