[−][src]Struct squash::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
impl RefUnwindSafe for TooLong
[src]
impl Send for TooLong
[src]
impl Sync for TooLong
[src]
impl Unpin for TooLong
[src]
impl UnwindSafe for TooLong
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,