pub struct ComprString { /* private fields */ }Expand description
DEFLATE-compressed String
Note that conversion from and to the compressed string has a CPU cost, so plan accordingly.
Implementations§
Source§impl ComprString
impl ComprString
Sourcepub fn compressed_len(&self) -> usize
pub fn compressed_len(&self) -> usize
Length of just the DEFLATE-compressed data (there’s a bit of extra RAM overhead on top of that).
There’s no way to get the original length without decompressing the string first.
Trait Implementations§
Source§impl Clone for ComprString
impl Clone for ComprString
Source§fn clone(&self) -> ComprString
fn clone(&self) -> ComprString
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComprString
impl Debug for ComprString
Source§impl Display for ComprString
impl Display for ComprString
Source§impl<'a> From<&'a str> for ComprString
impl<'a> From<&'a str> for ComprString
Source§impl From<String> for ComprString
impl From<String> for ComprString
Source§impl Hash for ComprString
impl Hash for ComprString
Source§impl Into<String> for ComprString
impl Into<String> for ComprString
Source§impl PartialEq for ComprString
impl PartialEq for ComprString
impl Eq for ComprString
impl StructuralPartialEq for ComprString
Auto Trait Implementations§
impl Freeze for ComprString
impl RefUnwindSafe for ComprString
impl Send for ComprString
impl Sync for ComprString
impl Unpin for ComprString
impl UnwindSafe for ComprString
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