Struct iroh_bytes::util::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}Expand description
A hash and format pair
Fields§
§hash: HashThe hash
format: BlobFormatThe format
Implementations§
Trait Implementations§
source§impl Clone for HashAndFormat
impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
fn clone(&self) -> HashAndFormat
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 HashAndFormat
impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
impl<'de> Deserialize<'de> for HashAndFormat
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 Display for HashAndFormat
impl Display for HashAndFormat
source§impl FromStr for HashAndFormat
impl FromStr for HashAndFormat
source§impl Ord for HashAndFormat
impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
fn cmp(&self, other: &HashAndFormat) -> 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 HashAndFormat
impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
fn eq(&self, other: &HashAndFormat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for HashAndFormat
impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &HashAndFormat) -> 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 Serialize for HashAndFormat
impl Serialize for HashAndFormat
impl Copy for HashAndFormat
impl Eq for HashAndFormat
impl StructuralEq for HashAndFormat
impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
impl RefUnwindSafe for HashAndFormat
impl Send for HashAndFormat
impl Sync for HashAndFormat
impl Unpin for HashAndFormat
impl UnwindSafe for HashAndFormat
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