#[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§impl PartialEq<Hash> for DirectoryHash
impl PartialEq<Hash> for DirectoryHash
Source§impl PartialOrd<DirectoryHash> for Hash
impl PartialOrd<DirectoryHash> for Hash
Source§impl PartialOrd<FileHash> for Hash
impl PartialOrd<FileHash> for Hash
Source§impl PartialOrd<Hash> for DirectoryHash
impl PartialOrd<Hash> for DirectoryHash
Source§impl PartialOrd<Hash> for FileHash
impl PartialOrd<Hash> for FileHash
Source§impl PartialOrd for Hash
impl PartialOrd for Hash
impl Copy for Hash
impl Eq for Hash
Auto Trait Implementations§
impl Freeze for Hash
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