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
sourceimpl 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
sourceimpl Clone for UncleBlockVecView
impl Clone for UncleBlockVecView
sourcefn clone(&self) -> UncleBlockVecView
fn clone(&self) -> UncleBlockVecView
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UncleBlockVecView
impl Debug for UncleBlockVecView
sourceimpl Display for UncleBlockVecView
impl Display for UncleBlockVecView
sourceimpl IntoIterator for UncleBlockVecView
impl IntoIterator for UncleBlockVecView
sourceimpl Pack<UncleBlockVecView> for UncleBlockVecView
impl Pack<UncleBlockVecView> for UncleBlockVecView
sourcefn pack(&self) -> UncleBlockVecView
fn pack(&self) -> UncleBlockVecView
Packs a rust type into binary data.
sourceimpl Unpack<UncleBlockVecView> for UncleBlockVecView
impl Unpack<UncleBlockVecView> for UncleBlockVecView
sourcefn unpack(&self) -> UncleBlockVecView
fn unpack(&self) -> UncleBlockVecView
Unpack binary data into rust types.
sourceimpl<'r> Unpack<UncleBlockVecView> for UncleBlockVecViewReader<'r>
impl<'r> Unpack<UncleBlockVecView> for UncleBlockVecViewReader<'r>
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more