pub struct Rar5EncryptionHeaderParser;Implementations§
Source§impl Rar5EncryptionHeaderParser
impl Rar5EncryptionHeaderParser
Sourcepub fn parse(data: &[u8]) -> Result<(Rar5EncryptionHeader, usize)>
pub fn parse(data: &[u8]) -> Result<(Rar5EncryptionHeader, usize)>
Parse an encryption header. Returns the header and number of bytes consumed.
Sourcepub fn is_encryption_header(data: &[u8]) -> bool
pub fn is_encryption_header(data: &[u8]) -> bool
Check if data starts with an encryption header.
Auto Trait Implementations§
impl Freeze for Rar5EncryptionHeaderParser
impl RefUnwindSafe for Rar5EncryptionHeaderParser
impl Send for Rar5EncryptionHeaderParser
impl Sync for Rar5EncryptionHeaderParser
impl Unpin for Rar5EncryptionHeaderParser
impl UnwindSafe for Rar5EncryptionHeaderParser
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