Struct libflate::gzip::ExtraSubField
source · pub struct ExtraSubField {
pub id: [u8; 2],
pub data: Vec<u8>,
}
Expand description
A sub field in the extra field of a GZIP header.
Fields§
§id: [u8; 2]
ID of the field.
data: Vec<u8>
Data of the field.
Implementations§
Trait Implementations§
source§impl Clone for ExtraSubField
impl Clone for ExtraSubField
source§fn clone(&self) -> ExtraSubField
fn clone(&self) -> ExtraSubField
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 ExtraSubField
impl Debug for ExtraSubField
source§impl Hash for ExtraSubField
impl Hash for ExtraSubField
source§impl PartialEq<ExtraSubField> for ExtraSubField
impl PartialEq<ExtraSubField> for ExtraSubField
source§fn eq(&self, other: &ExtraSubField) -> bool
fn eq(&self, other: &ExtraSubField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExtraSubField
impl StructuralEq for ExtraSubField
impl StructuralPartialEq for ExtraSubField
Auto Trait Implementations§
impl RefUnwindSafe for ExtraSubField
impl Send for ExtraSubField
impl Sync for ExtraSubField
impl Unpin for ExtraSubField
impl UnwindSafe for ExtraSubField
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