Struct tendril::fmt::UTF8
[−]
[src]
pub struct UTF8;
Marker type for UTF-8 text.
Trait Implementations
impl SubsetOf<UTF8> for ASCII
[src]
fn revalidate_subset(x: &[u8]) -> bool
[src]
Validate the other direction of conversion; check if this buffer from the superset format conforms to the subset format. Read more
impl Copy for UTF8
[src]
impl Clone for UTF8
[src]
fn clone(&self) -> UTF8
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for UTF8
[src]
impl Debug for UTF8
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Format for UTF8
[src]
fn validate(buf: &[u8]) -> bool
[src]
Check whether the buffer is valid for this format.
fn validate_prefix(buf: &[u8]) -> bool
[src]
Check whether the buffer is valid for this format. Read more
fn validate_suffix(buf: &[u8]) -> bool
[src]
Check whether the buffer is valid for this format. Read more
fn validate_subseq(buf: &[u8]) -> bool
[src]
Check whether the buffer is valid for this format. Read more
unsafe fn fixup(_lhs: &[u8], _rhs: &[u8]) -> Fixup
[src]
Compute any fixup needed when concatenating buffers. Read more
impl SubsetOf<WTF8> for UTF8
[src]
fn revalidate_subset(x: &[u8]) -> bool
[src]
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>
[src]
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]),
[src]
F: FnOnce(&[u8]),
Encode the character as bytes and pass them to a continuation. Read more
impl SliceExt<UTF8> for str
[src]
fn to_tendril(&self) -> Tendril<F>
[src]
Make a Tendril
from this slice.