Struct ckb_types::core::UncleBlockVecView[][src]

pub struct UncleBlockVecView { /* fields omitted */ }

A readonly and immutable struct which includes a vector of UncleBlocks and their hashes.

Notice

This struct is not implement the trait Default, use BlockView::uncles() to construct it.

Implementations

impl UncleBlockVecView[src]

pub fn data(&self) -> UncleBlockVec[src]

Gets a clone of packed::UncleBlockVec.

pub fn hashes(&self) -> Byte32Vec[src]

Gets a clone of hashes.

pub fn get(&self, index: usize) -> Option<UncleBlockView>[src]

Gets an uncle block through its index.

pub fn get_unchecked(&self, index: usize) -> UncleBlockView[src]

Gets an uncle block through its index without checks.

Panics

Panics if the index out of range.

Trait Implementations

impl Clone for UncleBlockVecView[src]

impl Debug for UncleBlockVecView[src]

impl Display for UncleBlockVecView[src]

impl IntoIterator for UncleBlockVecView[src]

type Item = UncleBlockView

The type of the elements being iterated over.

type IntoIter = UncleBlockVecViewIterator

Which kind of iterator are we turning this into?

impl Pack<UncleBlockVecView> for UncleBlockVecView[src]

impl<'r> Unpack<UncleBlockVecView> for UncleBlockVecViewReader<'r>[src]

impl Unpack<UncleBlockVecView> for UncleBlockVecView[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,