pub struct Zippy { /* private fields */ }Implementations§
Source§impl Zippy
impl Zippy
pub fn build( data: &[u8], name: String, description: String, features: Option<Vec<ZippyFeatures>>, options: Option<ZippyOptions>, ) -> Result<Self, Error>
pub fn encode_data(&self) -> Result<Vec<u8>, Error>
pub fn decode_data( data: &[u8], options: Option<ZippyOptions>, ) -> Result<Zippy, Error>
pub fn is_zippy(data: &[u8]) -> Result<bool, Error>
pub fn check_crc32(&self) -> bool
pub fn crc32(&self) -> u32
pub fn data(&self) -> &[u8] ⓘ
pub fn has_feature(&self, feature: ZippyFeatures) -> bool
Trait Implementations§
Source§impl Codec for Zippy
impl Codec for Zippy
type EncodeOptions = ZippyEncodeOptions
type DecodeOptions = ZippyDecodeOptions
fn encode(data: &[u8], options: &Self::EncodeOptions) -> Result<Vec<u8>, Error>
fn decode(data: &[u8], options: &Self::DecodeOptions) -> Result<Vec<u8>, Error>
Auto Trait Implementations§
impl Freeze for Zippy
impl RefUnwindSafe for Zippy
impl Send for Zippy
impl Sync for Zippy
impl Unpin for Zippy
impl UnsafeUnpin for Zippy
impl UnwindSafe for Zippy
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