Struct ckb_types::core::UncleBlockVecView
source · pub struct UncleBlockVecView { /* private fields */ }
Expand description
A readonly and immutable struct which includes a vector of UncleBlock
s and their hashes.
§Notice
This struct is not implement the trait Default
, use BlockView::uncles()
to construct it.
Implementations§
source§impl UncleBlockVecView
impl UncleBlockVecView
sourcepub fn data(&self) -> UncleBlockVec
pub fn data(&self) -> UncleBlockVec
Gets a clone of packed::UncleBlockVec
.
sourcepub fn get(&self, index: usize) -> Option<UncleBlockView>
pub fn get(&self, index: usize) -> Option<UncleBlockView>
Gets an uncle block through its index.
sourcepub fn get_unchecked(&self, index: usize) -> UncleBlockView
pub fn get_unchecked(&self, index: usize) -> UncleBlockView
Trait Implementations§
source§impl Clone for UncleBlockVecView
impl Clone for UncleBlockVecView
source§fn clone(&self) -> UncleBlockVecView
fn clone(&self) -> UncleBlockVecView
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 UncleBlockVecView
impl Debug for UncleBlockVecView
source§impl Display for UncleBlockVecView
impl Display for UncleBlockVecView
source§impl IntoIterator for UncleBlockVecView
impl IntoIterator for UncleBlockVecView
source§impl Pack<UncleBlockVecView> for UncleBlockVecView
impl Pack<UncleBlockVecView> for UncleBlockVecView
source§fn pack(&self) -> UncleBlockVecView
fn pack(&self) -> UncleBlockVecView
Packs a rust type into binary data.
source§impl Unpack<UncleBlockVecView> for UncleBlockVecView
impl Unpack<UncleBlockVecView> for UncleBlockVecView
source§fn unpack(&self) -> UncleBlockVecView
fn unpack(&self) -> UncleBlockVecView
Unpack binary data into rust types.
source§impl<'r> Unpack<UncleBlockVecView> for UncleBlockVecViewReader<'r>
impl<'r> Unpack<UncleBlockVecView> for UncleBlockVecViewReader<'r>
source§fn unpack(&self) -> UncleBlockVecView
fn unpack(&self) -> UncleBlockVecView
Unpack binary data into rust types.
Auto Trait Implementations§
impl RefUnwindSafe for UncleBlockVecView
impl Send for UncleBlockVecView
impl Sync for UncleBlockVecView
impl Unpin for UncleBlockVecView
impl UnwindSafe for UncleBlockVecView
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