Struct garage_util::data::FixedBytes32
source · pub struct FixedBytes32(/* private fields */);
Expand description
An array of 32 bytes
Implementations§
Trait Implementations§
source§impl AsRef<[u8]> for FixedBytes32
impl AsRef<[u8]> for FixedBytes32
source§impl Clone for FixedBytes32
impl Clone for FixedBytes32
source§fn clone(&self) -> FixedBytes32
fn clone(&self) -> FixedBytes32
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 FixedBytes32
impl Debug for FixedBytes32
source§impl Default for FixedBytes32
impl Default for FixedBytes32
source§fn default() -> FixedBytes32
fn default() -> FixedBytes32
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FixedBytes32
impl<'de> Deserialize<'de> for FixedBytes32
source§fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<FixedBytes32, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D ) -> Result<FixedBytes32, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl From<FixedBytes32> for NodeID
impl From<FixedBytes32> for NodeID
source§fn from(bytes: FixedBytes32) -> NodeID
fn from(bytes: FixedBytes32) -> NodeID
Converts to this type from the input type.
source§impl From<PublicKey> for FixedBytes32
impl From<PublicKey> for FixedBytes32
source§fn from(node_id: NodeID) -> FixedBytes32
fn from(node_id: NodeID) -> FixedBytes32
Converts to this type from the input type.
source§impl Hash for FixedBytes32
impl Hash for FixedBytes32
source§impl Ord for FixedBytes32
impl Ord for FixedBytes32
source§fn cmp(&self, other: &FixedBytes32) -> Ordering
fn cmp(&self, other: &FixedBytes32) -> 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 FixedBytes32
impl PartialEq for FixedBytes32
source§fn eq(&self, other: &FixedBytes32) -> bool
fn eq(&self, other: &FixedBytes32) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FixedBytes32
impl PartialOrd for FixedBytes32
source§fn partial_cmp(&self, other: &FixedBytes32) -> Option<Ordering>
fn partial_cmp(&self, other: &FixedBytes32) -> 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 FixedBytes32
impl Serialize for FixedBytes32
impl Copy for FixedBytes32
impl Eq for FixedBytes32
impl StructuralPartialEq for FixedBytes32
Auto Trait Implementations§
impl Freeze for FixedBytes32
impl RefUnwindSafe for FixedBytes32
impl Send for FixedBytes32
impl Sync for FixedBytes32
impl Unpin for FixedBytes32
impl UnwindSafe for FixedBytes32
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ToHex for T
impl<T> ToHex for T
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)