Struct ckb_types::packed::HeaderVecReader
source · [−]pub struct HeaderVecReader<'r>(_);
Implementations
sourceimpl<'r> HeaderVecReader<'r>
impl<'r> HeaderVecReader<'r>
pub const ITEM_SIZE: usize = 208usize
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<HeaderReader<'r>>
pub fn get_unchecked(&self, idx: usize) -> HeaderReader<'r>
sourceimpl<'r> HeaderVecReader<'r>
impl<'r> HeaderVecReader<'r>
pub fn iter<'t>(&'t self) -> HeaderVecReaderIterator<'t, 'r>ⓘNotable traits for HeaderVecReaderIterator<'t, 'r>impl<'t: 'r, 'r> Iterator for HeaderVecReaderIterator<'t, 'r> type Item = HeaderReader<'t>;
Trait Implementations
sourceimpl<'r> Clone for HeaderVecReader<'r>
impl<'r> Clone for HeaderVecReader<'r>
sourcefn clone(&self) -> HeaderVecReader<'r>
fn clone(&self) -> HeaderVecReader<'r>
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<'r> Debug for HeaderVecReader<'r>
impl<'r> Debug for HeaderVecReader<'r>
sourceimpl<'r> Display for HeaderVecReader<'r>
impl<'r> Display for HeaderVecReader<'r>
sourceimpl<'r> LowerHex for HeaderVecReader<'r>
impl<'r> LowerHex for HeaderVecReader<'r>
sourceimpl<'r> Reader<'r> for HeaderVecReader<'r>
impl<'r> Reader<'r> for HeaderVecReader<'r>
type Entity = HeaderVec
const NAME: &'static str = "HeaderVecReader"
fn to_entity(&self) -> Self::Entity
fn new_unchecked(slice: &'r [u8]) -> Self
fn as_slice(&self) -> &'r [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn verify(slice: &[u8], _compatible: bool) -> VerificationResult<()>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
impl<'r> Copy for HeaderVecReader<'r>
Auto Trait Implementations
impl<'r> RefUnwindSafe for HeaderVecReader<'r>
impl<'r> Send for HeaderVecReader<'r>
impl<'r> Sync for HeaderVecReader<'r>
impl<'r> Unpin for HeaderVecReader<'r>
impl<'r> UnwindSafe for HeaderVecReader<'r>
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
sourceimpl<'r, R> FromSliceShouldBeOk<'r> for R where
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for R where
R: Reader<'r>,
sourcefn from_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of from_slice(..)
with confidence and we assume that it’s impossible to fail.