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