pub struct EphemeralKeyBytes(pub [u8; 32]);Expand description
Newtype representing the byte encoding of an EphemeralPublicKey.
Tuple Fields§
§0: [u8; 32]Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for EphemeralKeyBytes
impl<'arbitrary> Arbitrary<'arbitrary> for EphemeralKeyBytes
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl AsRef<[u8]> for EphemeralKeyBytes
impl AsRef<[u8]> for EphemeralKeyBytes
Source§impl BorshDeserialize for EphemeralKeyBytes
impl BorshDeserialize for EphemeralKeyBytes
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSchema for EphemeralKeyBytes
impl BorshSchema for EphemeralKeyBytes
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl BorshSerialize for EphemeralKeyBytes
impl BorshSerialize for EphemeralKeyBytes
Source§impl Clone for EphemeralKeyBytes
impl Clone for EphemeralKeyBytes
Source§fn clone(&self) -> EphemeralKeyBytes
fn clone(&self) -> EphemeralKeyBytes
Returns a duplicate 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 ConstantTimeEq for EphemeralKeyBytes
impl ConstantTimeEq for EphemeralKeyBytes
Source§impl Debug for EphemeralKeyBytes
impl Debug for EphemeralKeyBytes
Source§impl Hash for EphemeralKeyBytes
impl Hash for EphemeralKeyBytes
Source§impl Ord for EphemeralKeyBytes
impl Ord for EphemeralKeyBytes
Source§fn cmp(&self, other: &EphemeralKeyBytes) -> Ordering
fn cmp(&self, other: &EphemeralKeyBytes) -> 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 EphemeralKeyBytes
impl PartialEq for EphemeralKeyBytes
Source§impl PartialOrd for EphemeralKeyBytes
impl PartialOrd for EphemeralKeyBytes
impl Eq for EphemeralKeyBytes
impl StructuralPartialEq for EphemeralKeyBytes
Auto Trait Implementations§
impl Freeze for EphemeralKeyBytes
impl RefUnwindSafe for EphemeralKeyBytes
impl Send for EphemeralKeyBytes
impl Sync for EphemeralKeyBytes
impl Unpin for EphemeralKeyBytes
impl UnwindSafe for EphemeralKeyBytes
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