Struct tendril::fmt::UTF8 [] [src]

pub struct UTF8;

Marker type for UTF-8 text.

Trait Implementations

impl Format for UTF8

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

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

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

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

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

impl SubsetOf<WTF8> for UTF8

fn revalidate_subset(x: &[u8]) -> bool

impl SliceFormat for UTF8

type Slice = str

impl<'a> CharFormat<'a> for UTF8

type Iter = CharIndices<'a>

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

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

Derived Implementations

impl Debug for UTF8

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

impl Default for UTF8

fn default() -> UTF8

impl Clone for UTF8

fn clone(&self) -> UTF8

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

impl Copy for UTF8