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
source§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
impl Copy for Latin1
Auto Trait Implementations§
impl Freeze for Latin1
impl RefUnwindSafe for Latin1
impl Send for Latin1
impl Sync for Latin1
impl Unpin for Latin1
impl UnwindSafe for Latin1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)