Trait litrs::Buffer[][src]

pub trait Buffer: Sealed + Deref<Target = str> {
    type Cow: From<String> + AsRef<str> + Borrow<str> + Deref<Target = str>;
    type ByteCow: From<Vec<u8>> + AsRef<[u8]> + Borrow<[u8]> + Deref<Target = [u8]>;
}
Expand description

A shared or owned string buffer. Implemented for String and &str. Implementation detail.

This is trait is implementation detail of this library, cannot be implemented in other crates and is not subject to semantic versioning. litrs only gurantees that this trait is implemented for String and for<'a> &'a str.

Associated Types

This is Cow<'static, str> for String, and Cow<'a, str> for &'a str.

This is Cow<'static, [u8]> for String, and Cow<'a, [u8]> for &'a str.

Implementations on Foreign Types

Implementors