[][src]Struct squash::TooLong

pub struct TooLong;

An error returned when the slice or string is longer than the header is able to encode.

The headers have a limit of how large lengths they can encode which is usually smaller than what the whole usize can hold (at least on 64bit platforms). If they are asked to encode something larger, this error is returned.

Note that the limits are usually above practical usability limits and if strings of over 4GB are actually needed, the usefulness of this library is questionable (it optimizes for many small strings/slices, the overhead is negligible on these large behemoths).

Trait Implementations

impl Clone for TooLong[src]

impl Copy for TooLong[src]

impl Debug for TooLong[src]

impl Display for TooLong[src]

impl Error for TooLong[src]

Auto Trait Implementations

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.