pub struct Store;Expand description
The identity codec: stores bytes unchanged.
Implementations§
Source§impl Store
impl Store
Sourcepub fn compress(&self, input: &[u8]) -> Vec<u8> ⓘ
Available on crate feature enc only.
pub fn compress(&self, input: &[u8]) -> Vec<u8> ⓘ
enc only.Compress input.
Sourcepub fn decompress(
&self,
input: &[u8],
orig_len: usize,
) -> Result<Vec<u8>, Error>
Available on crate feature dec only.
pub fn decompress( &self, input: &[u8], orig_len: usize, ) -> Result<Vec<u8>, Error>
dec only.Decompress input, which must expand to exactly orig_len bytes.
§Errors
Returns Error::Corrupt if input is not exactly orig_len
bytes long. Nothing else can go wrong: there is no encoding to
misparse.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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