Struct synthzip::DataDescriptor
source · pub struct DataDescriptor {
pub signature: Option<[u8; 4]>,
pub crc32_of_uncompressed_data: u32,
pub compressed_size: u32,
pub uncompressed_size: u32,
}
Fields§
§signature: Option<[u8; 4]>
§crc32_of_uncompressed_data: u32
§compressed_size: u32
§uncompressed_size: u32
Implementations§
source§impl DataDescriptor
impl DataDescriptor
pub fn read_from_end_with_signature<R: Read + Seek>( reader: &mut R ) -> Result<Self>
pub fn read_from_end_without_signature<R: Read + Seek>( reader: &mut R ) -> Result<Self>
pub fn read_from_end<R: Read + Seek>(reader: &mut R) -> Result<Self>
pub fn read<R: Read + Seek>(reader: &mut R) -> Result<Self>
pub fn write<W: Write + Seek>(&self, writer: &mut W) -> Result<()>
Trait Implementations§
source§impl Clone for DataDescriptor
impl Clone for DataDescriptor
source§fn clone(&self) -> DataDescriptor
fn clone(&self) -> DataDescriptor
Returns a copy 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 DataDescriptor
impl Debug for DataDescriptor
source§impl Hash for DataDescriptor
impl Hash for DataDescriptor
source§impl Ord for DataDescriptor
impl Ord for DataDescriptor
source§fn cmp(&self, other: &DataDescriptor) -> Ordering
fn cmp(&self, other: &DataDescriptor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DataDescriptor
impl PartialEq for DataDescriptor
source§fn eq(&self, other: &DataDescriptor) -> bool
fn eq(&self, other: &DataDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DataDescriptor
impl PartialOrd for DataDescriptor
source§fn partial_cmp(&self, other: &DataDescriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &DataDescriptor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DataDescriptor
impl Eq for DataDescriptor
impl StructuralEq for DataDescriptor
impl StructuralPartialEq for DataDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for DataDescriptor
impl Send for DataDescriptor
impl Sync for DataDescriptor
impl Unpin for DataDescriptor
impl UnwindSafe for DataDescriptor
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