[−][src]Struct ckb_types::core::HeaderView
Implementations
impl HeaderView
[src]
pub fn as_advanced_builder(&self) -> HeaderBuilder
[src]
impl HeaderView
[src]
pub fn data(&self) -> Header
[src]
pub fn hash(&self) -> Byte32
[src]
pub fn version(&self) -> Version
[src]
pub fn number(&self) -> BlockNumber
[src]
pub fn compact_target(&self) -> u32
[src]
pub fn timestamp(&self) -> u64
[src]
pub fn epoch(&self) -> EpochNumberWithFraction
[src]
pub fn parent_hash(&self) -> Byte32
[src]
pub fn transactions_root(&self) -> Byte32
[src]
pub fn proposals_hash(&self) -> Byte32
[src]
pub fn uncles_hash(&self) -> Byte32
[src]
pub fn dao(&self) -> Byte32
[src]
pub fn difficulty(&self) -> U256
[src]
pub fn nonce(&self) -> u128
[src]
pub fn is_genesis(&self) -> bool
[src]
pub fn fake_hash(self, hash: Byte32) -> Self
[src]
Trait Implementations
impl Clone for HeaderView
[src]
fn clone(&self) -> HeaderView
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HeaderView
[src]
impl Display for HeaderView
[src]
impl Eq for HeaderView
[src]
impl Hash for HeaderView
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Pack<HeaderView> for HeaderView
[src]
fn pack(&self) -> HeaderView
[src]
impl PartialEq<HeaderView> for HeaderView
[src]
impl<'r> Unpack<HeaderView> for HeaderViewReader<'r>
[src]
fn unpack(&self) -> HeaderView
[src]
impl Unpack<HeaderView> for HeaderView
[src]
fn unpack(&self) -> HeaderView
[src]
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
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[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.
fn to_owned(&self) -> T
[src]
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.
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>,