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§
source§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.
source§unsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'a> ⓘ
unsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'a> ⓘ
Iterate over the characters of the string and their byte
indices. Read more
source§impl Format for Latin1
impl Format for Latin1
source§fn validate_prefix(_: &[u8]) -> bool
fn validate_prefix(_: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
source§fn validate_suffix(_: &[u8]) -> bool
fn validate_suffix(_: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more