pub struct Byte32(_);
Implementations
sourceimpl Byte32
impl Byte32
pub const TOTAL_SIZE: usize = 32usize
pub const ITEM_SIZE: usize = 1usize
pub const ITEM_COUNT: usize = 32usize
pub fn nth0(&self) -> Byte
pub fn nth1(&self) -> Byte
pub fn nth2(&self) -> Byte
pub fn nth3(&self) -> Byte
pub fn nth4(&self) -> Byte
pub fn nth5(&self) -> Byte
pub fn nth6(&self) -> Byte
pub fn nth7(&self) -> Byte
pub fn nth8(&self) -> Byte
pub fn nth9(&self) -> Byte
pub fn nth10(&self) -> Byte
pub fn nth11(&self) -> Byte
pub fn nth12(&self) -> Byte
pub fn nth13(&self) -> Byte
pub fn nth14(&self) -> Byte
pub fn nth15(&self) -> Byte
pub fn nth16(&self) -> Byte
pub fn nth17(&self) -> Byte
pub fn nth18(&self) -> Byte
pub fn nth19(&self) -> Byte
pub fn nth20(&self) -> Byte
pub fn nth21(&self) -> Byte
pub fn nth22(&self) -> Byte
pub fn nth23(&self) -> Byte
pub fn nth24(&self) -> Byte
pub fn nth25(&self) -> Byte
pub fn nth26(&self) -> Byte
pub fn nth27(&self) -> Byte
pub fn nth28(&self) -> Byte
pub fn nth29(&self) -> Byte
pub fn nth30(&self) -> Byte
pub fn nth31(&self) -> Byte
pub fn raw_data(&self) -> Bytes
pub fn as_reader<'r>(&'r self) -> Byte32Reader<'r>
Trait Implementations
sourceimpl Entity for Byte32
impl Entity for Byte32
type Builder = Byte32Builder
const NAME: &'static str = "Byte32"
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
sourceimpl Ord for Byte32
impl Ord for Byte32
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Byte32> for Byte32
impl PartialOrd<Byte32> for Byte32
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl Eq for Byte32
Auto Trait Implementations
impl RefUnwindSafe for Byte32
impl Send for Byte32
impl Sync for Byte32
impl Unpin for Byte32
impl UnwindSafe for Byte32
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