Struct tectonic::io::DigestData
source · pub struct DigestData(/* private fields */);
Expand description
A wrapper for a fixed-size byte array representing a digest computed with the default implementation.
Implementations§
source§impl DigestData
impl DigestData
sourcepub fn zeros() -> DigestData
pub fn zeros() -> DigestData
Create a digest that is all zeros.
sourcepub fn of_nothing() -> DigestData
pub fn of_nothing() -> DigestData
Create a digest of a zero-size byte stream.
sourcepub fn create_two_part_path(&self, base: &Path) -> Result<PathBuf, Error>
pub fn create_two_part_path(&self, base: &Path) -> Result<PathBuf, Error>
Given a base path, create a child path from this digest’s value. The child path has a subdirectory from the hex value of the first byte of the digest, then a name consisting of the rest of the hex data. The first-byte subdirectory and all parent directories are created when you call this function!
Trait Implementations§
source§impl Clone for DigestData
impl Clone for DigestData
source§fn clone(&self) -> DigestData
fn clone(&self) -> DigestData
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 DigestData
impl Debug for DigestData
source§impl FromStr for DigestData
impl FromStr for DigestData
source§impl PartialEq for DigestData
impl PartialEq for DigestData
source§fn eq(&self, other: &DigestData) -> bool
fn eq(&self, other: &DigestData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToString for DigestData
impl ToString for DigestData
impl Copy for DigestData
impl Eq for DigestData
impl StructuralPartialEq for DigestData
Auto Trait Implementations§
impl RefUnwindSafe for DigestData
impl Send for DigestData
impl Sync for DigestData
impl Unpin for DigestData
impl UnwindSafe for DigestData
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.