Struct ckb_types::packed::HeaderView
source · [−]pub struct HeaderView(_);
Implementations
sourceimpl HeaderView
impl HeaderView
pub const TOTAL_SIZE: usize = 240usize
pub const FIELD_SIZES: [usize; 2] = _
pub const FIELD_COUNT: usize = 2usize
pub fn hash(&self) -> Byte32
pub fn data(&self) -> Header
pub fn as_reader<'r>(&'r self) -> HeaderViewReader<'r>
Trait Implementations
sourceimpl Clone for HeaderView
impl Clone for HeaderView
sourcefn clone(&self) -> HeaderView
fn clone(&self) -> HeaderView
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 HeaderView
impl Debug for HeaderView
sourceimpl Default for HeaderView
impl Default for HeaderView
sourceimpl Display for HeaderView
impl Display for HeaderView
sourceimpl Entity for HeaderView
impl Entity for HeaderView
type Builder = HeaderViewBuilder
const NAME: &'static str = "HeaderView"
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
sourceimpl LowerHex for HeaderView
impl LowerHex for HeaderView
sourceimpl Pack<HeaderView> for HeaderView
impl Pack<HeaderView> for HeaderView
sourcefn pack(&self) -> HeaderView
fn pack(&self) -> HeaderView
Packs a rust type into binary data.
sourceimpl Unpack<HeaderView> for HeaderView
impl Unpack<HeaderView> for HeaderView
sourcefn unpack(&self) -> HeaderView
fn unpack(&self) -> HeaderView
Unpack binary data into rust types.
Auto Trait Implementations
impl RefUnwindSafe for HeaderView
impl Send for HeaderView
impl Sync for HeaderView
impl Unpin for HeaderView
impl UnwindSafe for HeaderView
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