#[repr(C)]pub struct Hash {
pub file: u32,
pub extension: u32,
pub directory: u32,
}
Expand description
The underlying hash object used to uniquely identify objects within the archive.
Fields§
§file: u32
The file’s stem crc.
extension: u32
The first 4 bytes of the file’s extension.
directory: u32
The file’s parent path crc.
Implementations§
Trait Implementations§
source§impl BorrowMut<Hash> for FileHash
impl BorrowMut<Hash> for FileHash
source§fn borrow_mut(&mut self) -> &mut Hash
fn borrow_mut(&mut self) -> &mut Hash
Mutably borrows from an owned value. Read more
source§impl Ord for Hash
impl Ord for Hash
source§impl PartialEq<FileHash> for Hash
impl PartialEq<FileHash> for Hash
source§impl PartialEq<Hash> for FileHash
impl PartialEq<Hash> for FileHash
source§impl PartialEq for Hash
impl PartialEq for Hash
source§impl PartialOrd<FileHash> for Hash
impl PartialOrd<FileHash> for Hash
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 moresource§impl PartialOrd<Hash> for FileHash
impl PartialOrd<Hash> for FileHash
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 moresource§impl PartialOrd for Hash
impl PartialOrd for Hash
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 Hash
impl Eq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
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