pub struct Byte32Vec(/* private fields */);
Implementations§
Source§impl Byte32Vec
impl Byte32Vec
pub const ITEM_SIZE: usize = 32usize
pub fn total_size(&self) -> usize
pub fn item_count(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, idx: usize) -> Option<Byte32>
pub fn get_unchecked(&self, idx: usize) -> Byte32
pub fn as_reader<'r>(&'r self) -> Byte32VecReader<'r>
Trait Implementations§
Source§impl Entity for Byte32Vec
impl Entity for Byte32Vec
const NAME: &'static str = "Byte32Vec"
type Builder = Byte32VecBuilder
fn new_unchecked(data: Bytes) -> Byte32Vec
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<Byte32Vec, VerificationError>
fn from_compatible_slice(slice: &[u8]) -> Result<Byte32Vec, VerificationError>
fn new_builder() -> <Byte32Vec as Entity>::Builder
fn as_builder(self) -> <Byte32Vec as Entity>::Builder
Source§impl IntoIterator for Byte32Vec
impl IntoIterator for Byte32Vec
Auto Trait Implementations§
impl !Freeze for Byte32Vec
impl RefUnwindSafe for Byte32Vec
impl Send for Byte32Vec
impl Sync for Byte32Vec
impl Unpin for Byte32Vec
impl UnwindSafe for Byte32Vec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)