Struct ckb_types::packed::BytesOptVec
source · pub struct BytesOptVec(/* private fields */);
Implementations§
source§impl BytesOptVec
impl BytesOptVec
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<BytesOpt>
pub fn get_unchecked(&self, idx: usize) -> BytesOpt
pub fn as_reader<'r>(&'r self) -> BytesOptVecReader<'r>
Trait Implementations§
source§impl Clone for BytesOptVec
impl Clone for BytesOptVec
source§fn clone(&self) -> BytesOptVec
fn clone(&self) -> BytesOptVec
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 BytesOptVec
impl Debug for BytesOptVec
source§impl Default for BytesOptVec
impl Default for BytesOptVec
source§fn default() -> BytesOptVec
fn default() -> BytesOptVec
Returns the “default value” for a type. Read more
source§impl Display for BytesOptVec
impl Display for BytesOptVec
source§impl Entity for BytesOptVec
impl Entity for BytesOptVec
type Builder = BytesOptVecBuilder
const NAME: &'static str = "BytesOptVec"
fn new_unchecked(data: Bytes) -> BytesOptVec
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<BytesOptVec, VerificationError>
fn from_compatible_slice(slice: &[u8]) -> Result<BytesOptVec, VerificationError>
fn new_builder() -> <BytesOptVec as Entity>::Builder
fn as_builder(self) -> <BytesOptVec as Entity>::Builder
source§impl IntoIterator for BytesOptVec
impl IntoIterator for BytesOptVec
§type IntoIter = BytesOptVecIterator
type IntoIter = BytesOptVecIterator
Which kind of iterator are we turning this into?
source§fn into_iter(self) -> <BytesOptVec as IntoIterator>::IntoIter
fn into_iter(self) -> <BytesOptVec as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BytesOptVec
impl Send for BytesOptVec
impl Sync for BytesOptVec
impl Unpin for BytesOptVec
impl UnwindSafe for BytesOptVec
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