pub struct EncodingDeclaration {
pub label: String,
pub start: usize,
pub end: usize,
}Expand description
The encoding pseudo-attribute of an XML declaration, and where its value
sits in the bytes it was read from.
The range is the label alone, quotes excluded, so a writer that has to restate the encoding can rewrite exactly those bytes and nothing else.
Fields§
§label: StringThe label exactly as written, neither trimmed nor case-folded.
start: usizeThe byte offset of the first byte of the label.
end: usizeThe byte offset one past the last byte of the label.
Trait Implementations§
Source§impl Clone for EncodingDeclaration
impl Clone for EncodingDeclaration
Source§impl Debug for EncodingDeclaration
impl Debug for EncodingDeclaration
impl Eq for EncodingDeclaration
Source§impl PartialEq for EncodingDeclaration
impl PartialEq for EncodingDeclaration
impl StructuralPartialEq for EncodingDeclaration
Auto Trait Implementations§
impl Freeze for EncodingDeclaration
impl RefUnwindSafe for EncodingDeclaration
impl Send for EncodingDeclaration
impl Sync for EncodingDeclaration
impl Unpin for EncodingDeclaration
impl UnsafeUnpin for EncodingDeclaration
impl UnwindSafe for EncodingDeclaration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.