pub enum ContentHint {
Unknown,
AlreadyCompressed,
Compressible,
}Expand description
The probe itself, re-exported so znippy_common::precompressed::* keeps
naming exactly what it always named. These are ldeflate’s items, not copies
of them — breaking one there breaks every znippy caller, which is the point
of the move.
What a caller already knows about its content, if anything.
The hint is honoured in both directions: Compressible is never vetoed
by a probe, so a caller who knows better than the magic bytes wins.
Variants§
Unknown
Nothing known — probe the bytes.
AlreadyCompressed
Caller asserts this is already compressed. Store it, do not probe.
Compressible
Caller asserts this is worth compressing. Compress it, do not probe.
Trait Implementations§
Source§impl Clone for ContentHint
impl Clone for ContentHint
Source§fn clone(&self) -> ContentHint
fn clone(&self) -> ContentHint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContentHint
Source§impl Debug for ContentHint
impl Debug for ContentHint
Source§impl Default for ContentHint
impl Default for ContentHint
Source§fn default() -> ContentHint
fn default() -> ContentHint
Returns the “default value” for a type. Read more
impl Eq for ContentHint
Source§impl PartialEq for ContentHint
impl PartialEq for ContentHint
impl StructuralPartialEq for ContentHint
Auto Trait Implementations§
impl Freeze for ContentHint
impl RefUnwindSafe for ContentHint
impl Send for ContentHint
impl Sync for ContentHint
impl Unpin for ContentHint
impl UnsafeUnpin for ContentHint
impl UnwindSafe for ContentHint
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.