pub struct Compressed(pub u64);Expand description
A byte count as stored in the archive.
Distinct from Uncompressed so the two sides of the compression ratio
cannot be swapped at a call site.
§Examples
use exarch_core::Compressed;
assert_eq!(Compressed(512).0, 512);Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for Compressed
impl Clone for Compressed
impl Copy for Compressed
Source§impl Debug for Compressed
impl Debug for Compressed
impl Eq for Compressed
Source§impl Hash for Compressed
impl Hash for Compressed
Source§impl Ord for Compressed
impl Ord for Compressed
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Compressed
impl PartialEq for Compressed
Source§impl PartialOrd for Compressed
impl PartialOrd for Compressed
impl StructuralPartialEq for Compressed
Auto Trait Implementations§
impl Freeze for Compressed
impl RefUnwindSafe for Compressed
impl Send for Compressed
impl Sync for Compressed
impl Unpin for Compressed
impl UnsafeUnpin for Compressed
impl UnwindSafe for Compressed
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.