Struct garage_util::data::FixedBytes32
source · pub struct FixedBytes32(_);
Expand description
An array of 32 bytes
Implementations
sourceimpl FixedBytes32
impl FixedBytes32
sourcepub fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
pub fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
Access the content as a mutable slice
Trait Implementations
sourceimpl AsRef<[u8]> for FixedBytes32
impl AsRef<[u8]> for FixedBytes32
sourceimpl Clone for FixedBytes32
impl Clone for FixedBytes32
sourcefn clone(&self) -> FixedBytes32
fn clone(&self) -> FixedBytes32
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FixedBytes32
impl Debug for FixedBytes32
sourceimpl Default for FixedBytes32
impl Default for FixedBytes32
sourcefn default() -> FixedBytes32
fn default() -> FixedBytes32
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FixedBytes32
impl<'de> Deserialize<'de> for FixedBytes32
sourcefn 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
sourceimpl From<[u8; 32]> for FixedBytes32
impl From<[u8; 32]> for FixedBytes32
sourcefn from(x: [u8; 32]) -> FixedBytes32
fn from(x: [u8; 32]) -> FixedBytes32
Converts to this type from the input type.
sourceimpl From<FixedBytes32> for NodeID
impl From<FixedBytes32> for NodeID
sourcefn from(bytes: FixedBytes32) -> NodeID
fn from(bytes: FixedBytes32) -> NodeID
Converts to this type from the input type.
sourceimpl From<PublicKey> for FixedBytes32
impl From<PublicKey> for FixedBytes32
sourcefn from(node_id: NodeID) -> FixedBytes32
fn from(node_id: NodeID) -> FixedBytes32
Converts to this type from the input type.
sourceimpl Hash for FixedBytes32
impl Hash for FixedBytes32
sourceimpl Ord for FixedBytes32
impl Ord for FixedBytes32
sourcefn cmp(&self, other: &FixedBytes32) -> Ordering
fn cmp(&self, other: &FixedBytes32) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FixedBytes32> for FixedBytes32
impl PartialEq<FixedBytes32> for FixedBytes32
sourcefn eq(&self, other: &FixedBytes32) -> bool
fn eq(&self, other: &FixedBytes32) -> bool
sourceimpl PartialOrd<FixedBytes32> for FixedBytes32
impl PartialOrd<FixedBytes32> for FixedBytes32
sourcefn partial_cmp(&self, other: &FixedBytes32) -> Option<Ordering>
fn partial_cmp(&self, other: &FixedBytes32) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Serialize for FixedBytes32
impl Serialize for FixedBytes32
impl Copy for FixedBytes32
impl Eq for FixedBytes32
impl StructuralEq for FixedBytes32
impl StructuralPartialEq for FixedBytes32
Auto Trait Implementations
impl RefUnwindSafe for FixedBytes32
impl Send for FixedBytes32
impl Sync for FixedBytes32
impl Unpin for FixedBytes32
impl UnwindSafe for FixedBytes32
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FutureExt for T
impl<T> FutureExt for T
sourcefn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
sourcefn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
sourcefn 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
) Read moresourcefn 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
) Read more