pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: Hash
The hash
format: BlobFormat
The format
Implementations§
Source§impl HashAndFormat
impl HashAndFormat
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 From<DownloadKind> for HashAndFormat
Available on crate feature downloader
only.
impl From<DownloadKind> for HashAndFormat
Available on crate feature
downloader
only.Source§fn from(value: DownloadKind) -> Self
fn from(value: DownloadKind) -> Self
Converts to this type from the input type.
Source§impl From<HashAndFormat> for DownloadKind
Available on crate feature downloader
only.
impl From<HashAndFormat> for DownloadKind
Available on crate feature
downloader
only.Source§fn from(value: HashAndFormat) -> Self
fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.
Source§impl FromStr for HashAndFormat
impl FromStr for HashAndFormat
Source§impl Hash for HashAndFormat
impl Hash for HashAndFormat
Source§impl MaxSize for HashAndFormat
impl MaxSize for HashAndFormat
Source§const POSTCARD_MAX_SIZE: usize = 33usize
const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
type can have, in bytes.
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§impl PartialOrd for HashAndFormat
impl PartialOrd for HashAndFormat
Source§impl Serialize for HashAndFormat
impl Serialize for HashAndFormat
Source§impl Value for HashAndFormat
Available on crate feature redb
only.
impl Value for HashAndFormat
Available on crate feature
redb
only.Source§type SelfType<'a> = HashAndFormat
type SelfType<'a> = HashAndFormat
SelfType<'a>
must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = [u8; 33]
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
impl Copy for HashAndFormat
impl Eq for HashAndFormat
impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
impl Freeze for HashAndFormat
impl RefUnwindSafe for HashAndFormat
impl Send for HashAndFormat
impl Sync for HashAndFormat
impl Unpin for HashAndFormat
impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.§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