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