Struct tendril::fmt::ASCII [] [src]

pub struct ASCII;

Marker type for ASCII text.

Trait Implementations

impl Debug for ASCII
[src]

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

Formats the value using the given formatter.

impl Default for ASCII
[src]

fn default() -> ASCII

Returns the "default value" for a type. Read more

impl Clone for ASCII
[src]

fn clone(&self) -> ASCII

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 Copy for ASCII
[src]

impl Format for ASCII
[src]

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

Check whether the buffer is valid for this format.

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

Check whether the buffer is valid for this format. Read more

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

Check whether the buffer is valid for this format. Read more

fn validate_subseq(_: &[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<UTF8> for ASCII
[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 SubsetOf<Latin1> for ASCII
[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<'a> CharFormat<'a> for ASCII
[src]

type Iter = SingleByteCharIndices<'a>

Iterator for characters and their byte indices.

unsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'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])

Encode the character as bytes and pass them to a continuation. Read more