#[repr(C)]pub struct Hash {
pub last: u8,
pub last2: u8,
pub length: u8,
pub first: u8,
pub crc: u32,
}
Expand description
The underlying hash object used to uniquely identify objects within the archive.
Fields§
§last: u8
The last character of the path (directory) or stem (file).
last2: u8
The second to last character of the path (directory) or stem (file).
length: u8
The length of the path (directory) or stem (file).
first: u8
The first character of the path (directory) or stem (file).
crc: u32
Implementations§
Trait Implementations§
source§impl AsMut<Hash> for DirectoryHash
impl AsMut<Hash> for DirectoryHash
source§impl AsRef<Hash> for DirectoryHash
impl AsRef<Hash> for DirectoryHash
source§impl Borrow<Hash> for DirectoryHash
impl Borrow<Hash> for DirectoryHash
source§impl BorrowMut<Hash> for DirectoryHash
impl BorrowMut<Hash> for DirectoryHash
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 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 From<DirectoryHash> for Hash
impl From<DirectoryHash> for Hash
source§fn from(value: DirectoryHash) -> Self
fn from(value: DirectoryHash) -> Self
Converts to this type from the input type.
source§impl From<Hash> for DirectoryHash
impl From<Hash> for DirectoryHash
source§impl Ord for Hash
impl Ord for Hash
source§impl PartialEq<DirectoryHash> for Hash
impl PartialEq<DirectoryHash> for Hash
source§fn eq(&self, other: &DirectoryHash) -> bool
fn eq(&self, other: &DirectoryHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<FileHash> for Hash
impl PartialEq<FileHash> for Hash
source§impl PartialEq<Hash> for DirectoryHash
impl PartialEq<Hash> for DirectoryHash
source§impl PartialEq<Hash> for FileHash
impl PartialEq<Hash> for FileHash
source§impl PartialEq for Hash
impl PartialEq for Hash
source§impl PartialOrd<DirectoryHash> for Hash
impl PartialOrd<DirectoryHash> for Hash
source§fn partial_cmp(&self, other: &DirectoryHash) -> Option<Ordering>
fn partial_cmp(&self, other: &DirectoryHash) -> 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 moresource§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 DirectoryHash
impl PartialOrd<Hash> for DirectoryHash
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
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