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