#[repr(transparent)]pub struct OpaqueBandersnatchPublic(pub [u8; 32]);Expand description
Plain-old-data struct of the same length as an encoded Bandersnatch public key.
This has no cryptographic functionality or dependencies.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl AsMut<[u8]> for OpaqueBandersnatchPublic
impl AsMut<[u8]> for OpaqueBandersnatchPublic
Source§impl Clone for OpaqueBandersnatchPublic
impl Clone for OpaqueBandersnatchPublic
Source§fn clone(&self) -> OpaqueBandersnatchPublic
fn clone(&self) -> OpaqueBandersnatchPublic
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 OpaqueBandersnatchPublic
impl Debug for OpaqueBandersnatchPublic
Source§impl Decode for OpaqueBandersnatchPublic
impl Decode for OpaqueBandersnatchPublic
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
dst_: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>
fn decode_into<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, dst_: &mut MaybeUninit<Self>, ) -> Result<DecodeFinished, Error>
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Default for OpaqueBandersnatchPublic
impl Default for OpaqueBandersnatchPublic
Source§impl Deref for OpaqueBandersnatchPublic
impl Deref for OpaqueBandersnatchPublic
Source§impl DerefMut for OpaqueBandersnatchPublic
impl DerefMut for OpaqueBandersnatchPublic
Source§impl Display for OpaqueBandersnatchPublic
impl Display for OpaqueBandersnatchPublic
Source§impl Encode for OpaqueBandersnatchPublic
impl Encode for OpaqueBandersnatchPublic
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>(
&self,
f: __CodecUsingEncodedCallback,
) -> __CodecOutputReturn
fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>( &self, f: __CodecUsingEncodedCallback, ) -> __CodecOutputReturn
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl Hash for OpaqueBandersnatchPublic
impl Hash for OpaqueBandersnatchPublic
Source§impl MaxEncodedLen for OpaqueBandersnatchPublic
impl MaxEncodedLen for OpaqueBandersnatchPublic
Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
Source§impl Ord for OpaqueBandersnatchPublic
impl Ord for OpaqueBandersnatchPublic
Source§fn cmp(&self, other: &OpaqueBandersnatchPublic) -> Ordering
fn cmp(&self, other: &OpaqueBandersnatchPublic) -> 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 OpaqueBandersnatchPublic
impl PartialEq for OpaqueBandersnatchPublic
Source§impl PartialOrd for OpaqueBandersnatchPublic
impl PartialOrd for OpaqueBandersnatchPublic
impl ConstEncodedLen for OpaqueBandersnatchPublic
impl Copy for OpaqueBandersnatchPublic
impl EncodeLike for OpaqueBandersnatchPublic
impl Eq for OpaqueBandersnatchPublic
impl StructuralPartialEq for OpaqueBandersnatchPublic
Auto Trait Implementations§
impl Freeze for OpaqueBandersnatchPublic
impl RefUnwindSafe for OpaqueBandersnatchPublic
impl Send for OpaqueBandersnatchPublic
impl Sync for OpaqueBandersnatchPublic
impl Unpin for OpaqueBandersnatchPublic
impl UnwindSafe for OpaqueBandersnatchPublic
Blanket Implementations§
Source§impl<T, U> AsMutByteSlice<T> for U
impl<T, U> AsMutByteSlice<T> for U
fn as_mut_byte_slice(&mut self) -> &mut [u8] ⓘ
Source§impl<U> AsMutSliceOf for U
impl<U> AsMutSliceOf for U
fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>where
T: FromByteSlice,
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