pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Available on crate feature
hash
only.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 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
impl Value for HashAndFormat
Source§type SelfType<'a> = HashAndFormat
type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
type 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§
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)