pub struct XmlDeclInfo {
pub version: String,
pub encoding: Option<String>,
pub standalone: Option<bool>,
}Expand description
Captured XML declaration fields (<?xml version="…" encoding="…" standalone="…"?>). Populated by XmlBytesReader during prolog
parsing; available via XmlBytesReader::xml_decl after the first
event has been read.
encoding is None when the declaration omitted it (XML 1.0 § 2.8
allows that — the file is then implicitly UTF-8 or UTF-16 as detected
from the BOM). standalone is None when the declaration omitted
standalone=….
Fields§
§version: String§encoding: Option<String>§standalone: Option<bool>Trait Implementations§
Source§impl Clone for XmlDeclInfo
impl Clone for XmlDeclInfo
Source§fn clone(&self) -> XmlDeclInfo
fn clone(&self) -> XmlDeclInfo
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 moreSource§impl Debug for XmlDeclInfo
impl Debug for XmlDeclInfo
impl Eq for XmlDeclInfo
Source§impl PartialEq for XmlDeclInfo
impl PartialEq for XmlDeclInfo
Source§fn eq(&self, other: &XmlDeclInfo) -> bool
fn eq(&self, other: &XmlDeclInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XmlDeclInfo
Auto Trait Implementations§
impl Freeze for XmlDeclInfo
impl RefUnwindSafe for XmlDeclInfo
impl Send for XmlDeclInfo
impl Sync for XmlDeclInfo
impl Unpin for XmlDeclInfo
impl UnsafeUnpin for XmlDeclInfo
impl UnwindSafe for XmlDeclInfo
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