Struct tendril::fmt::UTF8
[−]
[src]
pub struct UTF8;
Marker type for UTF-8 text.
Trait Implementations
impl Copy for UTF8
[src]
impl Clone for UTF8
[src]
fn clone(&self) -> UTF8
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for UTF8
[src]
impl Debug for UTF8
[src]
impl Format for UTF8
[src]
fn validate(buf: &[u8]) -> bool
Check whether the buffer is valid for this format.
fn validate_prefix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
fn validate_suffix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
fn validate_subseq(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
unsafe fn fixup(_lhs: &[u8], _rhs: &[u8]) -> Fixup
Compute any fixup needed when concatenating buffers. Read more
impl SubsetOf<WTF8> for UTF8
[src]
fn revalidate_subset(x: &[u8]) -> bool
Validate the other direction of conversion; check if this buffer from the superset format conforms to the subset format. Read more
impl SliceFormat for UTF8
[src]
impl<'a> CharFormat<'a> for UTF8
[src]
type Iter = CharIndices<'a>
Iterator for characters and their byte indices.
unsafe fn char_indices(buf: &'a [u8]) -> CharIndices<'a>
Iterate over the characters of the string and their byte indices. Read more
fn encode_char<F>(ch: char, cont: F) -> Result<(), ()> where
F: FnOnce(&[u8]),
F: FnOnce(&[u8]),
Encode the character as bytes and pass them to a continuation. Read more