pub struct PathHashPrefix(/* private fields */);Expand description
The first characters found in the string representation of a sha256 digest. This can be used for
randomly sharding a repository. See [PathSet::PathHashDigest] for the description of how this
is used.
Implementations§
Trait Implementations§
Source§impl Clone for PathHashPrefix
impl Clone for PathHashPrefix
Source§fn clone(&self) -> PathHashPrefix
fn clone(&self) -> PathHashPrefix
Returns a duplicate 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 PathHashPrefix
impl Debug for PathHashPrefix
Source§impl<'de> Deserialize<'de> for PathHashPrefix
impl<'de> Deserialize<'de> for PathHashPrefix
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for PathHashPrefix
impl FromStr for PathHashPrefix
Source§impl Hash for PathHashPrefix
impl Hash for PathHashPrefix
Source§impl Ord for PathHashPrefix
impl Ord for PathHashPrefix
Source§fn cmp(&self, other: &PathHashPrefix) -> Ordering
fn cmp(&self, other: &PathHashPrefix) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PathHashPrefix
impl PartialEq for PathHashPrefix
Source§impl PartialOrd for PathHashPrefix
impl PartialOrd for PathHashPrefix
Source§impl Serialize for PathHashPrefix
impl Serialize for PathHashPrefix
impl Eq for PathHashPrefix
impl StructuralPartialEq for PathHashPrefix
Auto Trait Implementations§
impl Freeze for PathHashPrefix
impl RefUnwindSafe for PathHashPrefix
impl Send for PathHashPrefix
impl Sync for PathHashPrefix
impl Unpin for PathHashPrefix
impl UnwindSafe for PathHashPrefix
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