[][src]Struct squash::Str

pub struct Str<H: Header = BoxHeader>(_);

An owned string slice.

This is the same optimisation as OwnedSlice does, but applied to &str.

Implementations

impl<H> Str<H> where
    H: Header
[src]

pub fn new(s: &str) -> Result<Self, TooLong>[src]

Creates a new owned string slice.

Trait Implementations

impl<H: Clone + Header> Clone for Str<H>[src]

impl<H> Debug for Str<H> where
    H: Header
[src]

impl<H: Default + Header> Default for Str<H>[src]

impl<H> Deref for Str<H> where
    H: Header
[src]

type Target = str

The resulting type after dereferencing.

impl DerefMut for Str<BoxHeader>[src]

impl<H> Display for Str<H> where
    H: Header
[src]

Auto Trait Implementations

impl<H> RefUnwindSafe for Str<H> where
    H: RefUnwindSafe
[src]

impl<H> Send for Str<H> where
    H: Send + Sync
[src]

impl<H> Sync for Str<H> where
    H: Send + Sync
[src]

impl<H> Unpin for Str<H>[src]

impl<H> UnwindSafe for Str<H> where
    H: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.