pub struct ArrayDiscriminator(/* private fields */);
Expand description
Array Discriminator type
Implementations§
source§impl ArrayDiscriminator
impl ArrayDiscriminator
sourcepub const UNINITIALIZED: Self = _
pub const UNINITIALIZED: Self = _
Uninitialized variant of a discriminator
sourcepub fn new_with_hash_input(hash_input: &str) -> Self
pub fn new_with_hash_input(hash_input: &str) -> Self
Creates a new ArrayDiscriminator
from some hash input string literal
Trait Implementations§
source§impl AsRef<[u8]> for ArrayDiscriminator
impl AsRef<[u8]> for ArrayDiscriminator
source§impl Clone for ArrayDiscriminator
impl Clone for ArrayDiscriminator
source§fn clone(&self) -> ArrayDiscriminator
fn clone(&self) -> ArrayDiscriminator
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 ArrayDiscriminator
impl Debug for ArrayDiscriminator
source§impl Default for ArrayDiscriminator
impl Default for ArrayDiscriminator
source§fn default() -> ArrayDiscriminator
fn default() -> ArrayDiscriminator
Returns the “default value” for a type. Read more
source§impl From<ArrayDiscriminator> for [u8; 8]
impl From<ArrayDiscriminator> for [u8; 8]
source§fn from(from: ArrayDiscriminator) -> Self
fn from(from: ArrayDiscriminator) -> Self
Converts to this type from the input type.
source§impl From<ArrayDiscriminator> for u64
impl From<ArrayDiscriminator> for u64
source§fn from(from: ArrayDiscriminator) -> Self
fn from(from: ArrayDiscriminator) -> Self
Converts to this type from the input type.
source§impl From<u64> for ArrayDiscriminator
impl From<u64> for ArrayDiscriminator
source§impl PartialEq for ArrayDiscriminator
impl PartialEq for ArrayDiscriminator
source§fn eq(&self, other: &ArrayDiscriminator) -> bool
fn eq(&self, other: &ArrayDiscriminator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&[u8]> for ArrayDiscriminator
impl TryFrom<&[u8]> for ArrayDiscriminator
impl Copy for ArrayDiscriminator
impl Pod for ArrayDiscriminator
impl StructuralPartialEq for ArrayDiscriminator
Auto Trait Implementations§
impl Freeze for ArrayDiscriminator
impl RefUnwindSafe for ArrayDiscriminator
impl Send for ArrayDiscriminator
impl Sync for ArrayDiscriminator
impl Unpin for ArrayDiscriminator
impl UnwindSafe for ArrayDiscriminator
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more