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