Struct ckb_types::packed::HeaderViewReader [−][src]
Implementations
impl<'r> HeaderViewReader<'r>
[src]
pub const TOTAL_SIZE: usize
[src]
pub const FIELD_SIZES: [usize; 2]
[src]
pub const FIELD_COUNT: usize
[src]
pub fn hash(&self) -> Byte32Reader<'r>
[src]
pub fn data(&self) -> HeaderReader<'r>
[src]
Trait Implementations
impl<'r> Clone for HeaderViewReader<'r>
[src]
fn clone(&self) -> HeaderViewReader<'r>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'r> Copy for HeaderViewReader<'r>
[src]
impl<'r> Debug for HeaderViewReader<'r>
[src]
impl<'r> Display for HeaderViewReader<'r>
[src]
impl<'r> LowerHex for HeaderViewReader<'r>
[src]
impl<'r> Reader<'r> for HeaderViewReader<'r>
[src]
type Entity = HeaderView
const NAME: &'static str
[src]
fn to_entity(&self) -> Self::Entity
[src]
fn new_unchecked(slice: &'r [u8]) -> Self
[src]
fn as_slice(&self) -> &'r [u8]
[src]
fn verify(slice: &[u8], _compatible: bool) -> VerificationResult<()>
[src]
pub fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
[src]
pub fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
[src]
impl<'r> Unpack<HeaderView> for HeaderViewReader<'r>
[src]
fn unpack(&self) -> HeaderView
[src]
Auto Trait Implementations
impl<'r> RefUnwindSafe for HeaderViewReader<'r>
impl<'r> Send for HeaderViewReader<'r>
impl<'r> Sync for HeaderViewReader<'r>
impl<'r> Unpin for HeaderViewReader<'r>
impl<'r> UnwindSafe for HeaderViewReader<'r>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<'r, R> FromSliceShouldBeOk<'r> for R where
R: Reader<'r>,
[src]
R: Reader<'r>,
pub fn from_slice_should_be_ok(&'r [u8]) -> R
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,