Struct tendril::fmt::Latin1 [] [src]

pub struct Latin1;

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 Format for Latin1

fn validate(_: &[u8]) -> bool

fn validate_prefix(_: &[u8]) -> bool

fn validate_suffix(_: &[u8]) -> bool

fn validate_subseq(_: &[u8]) -> bool

unsafe fn fixup(_lhs: &[u8], _rhs: &[u8]) -> Fixup

impl<'a> CharFormat<'a> for Latin1

type Iter = SingleByteCharIndices<'a>

unsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'a>

fn encode_char<F>(ch: char, cont: F) -> Result<(), ()> where F: FnOnce(&[u8])

Derived Implementations

impl Debug for Latin1

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Default for Latin1

fn default() -> Latin1

impl Clone for Latin1

fn clone(&self) -> Latin1

fn clone_from(&mut self, source: &Self)

impl Copy for Latin1