#[repr(transparent)]pub struct ArrayDiscriminator(_);
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<ArrayDiscriminator> for ArrayDiscriminator
impl PartialEq<ArrayDiscriminator> 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 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
.