Struct UnicodeExtraField
pub struct UnicodeExtraField { /* private fields */ }
Info-ZIP Unicode Path Extra Field (0x7075) or Unicode Comment Extra Field (0x6375), as specified in APPNOTE 4.6.8 and 4.6.9
Implementations
impl UnicodeExtraField
fn unwrap_valid(self, ascii_field: &[u8]) -> ZipResult<Box<[u8]>>Verifies the checksum and returns the content.
Errors
Returns an error when the crc32 from the extra field does not match the crc32 of the
ascii_field.
Trait Implementations
impl Clone for UnicodeExtraField
fn clone(&self) -> UnicodeExtraField
impl Debug for UnicodeExtraField
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl Freeze for UnicodeExtraField
impl RefUnwindSafe for UnicodeExtraField
impl Send for UnicodeExtraField
impl Sync for UnicodeExtraField
impl Unpin for UnicodeExtraField
impl UnsafeUnpin for UnicodeExtraField
impl UnwindSafe for UnicodeExtraField
Blanket Implementations
impl<T> Any for UnicodeExtraField
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for UnicodeExtraField
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for UnicodeExtraField
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for UnicodeExtraField
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for UnicodeExtraField
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Same for UnicodeExtraField
type Output = T;
impl<T> ToOwned for UnicodeExtraField
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for UnicodeExtraField
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for UnicodeExtraField
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for UnicodeExtraField
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>