Struct xml5ever::tendril::fmt::Latin1 [−]
pub struct Latin1;
Expand description
Marker type for the single-byte encoding of the first 256 Unicode codepoints.
This is IANA’s “ISO-8859-1”. It’s ISO’s “ISO 8859-1” with the addition of the C0 and C1 control characters from ECMA-48 / ISO 6429.
Not to be confused with WHATWG’s “latin1” or “iso8859-1” labels (or the many other aliases), which actually stand for Windows-1252.
Trait Implementations
impl<'a> CharFormat<'a> for Latin1
impl<'a> CharFormat<'a> for Latin1
type Iter = SingleByteCharIndices<'a>
type Iter = SingleByteCharIndices<'a>
Iterator for characters and their byte indices.
pub unsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'a>ⓘNotable traits for SingleByteCharIndices<'a>impl<'a> Iterator for SingleByteCharIndices<'a> type Item = (usize, char);
pub unsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'a>ⓘNotable traits for SingleByteCharIndices<'a>impl<'a> Iterator for SingleByteCharIndices<'a> type Item = (usize, char);
Notable traits for SingleByteCharIndices<'a>
impl<'a> Iterator for SingleByteCharIndices<'a> type Item = (usize, char);
Iterate over the characters of the string and their byte indices. Read more
Auto Trait Implementations
impl RefUnwindSafe for Latin1
impl UnwindSafe for Latin1
Blanket Implementations
Mutably borrows from an owned value. Read more