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