Struct ckb_types::packed::NumberHash
source · pub struct NumberHash(/* private fields */);
Implementations§
source§impl NumberHash
impl NumberHash
pub const TOTAL_SIZE: usize = 40usize
pub const FIELD_SIZES: [usize; 2] = _
pub const FIELD_COUNT: usize = 2usize
pub fn number(&self) -> Uint64
pub fn block_hash(&self) -> Byte32
pub fn as_reader<'r>(&'r self) -> NumberHashReader<'r>
Trait Implementations§
source§impl Clone for NumberHash
impl Clone for NumberHash
source§fn clone(&self) -> NumberHash
fn clone(&self) -> NumberHash
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 NumberHash
impl Debug for NumberHash
source§impl Default for NumberHash
impl Default for NumberHash
source§fn default() -> NumberHash
fn default() -> NumberHash
Returns the “default value” for a type. Read more
source§impl Display for NumberHash
impl Display for NumberHash
source§impl Entity for NumberHash
impl Entity for NumberHash
type Builder = NumberHashBuilder
const NAME: &'static str = "NumberHash"
fn new_unchecked(data: Bytes) -> NumberHash
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<NumberHash, VerificationError>
fn from_compatible_slice(slice: &[u8]) -> Result<NumberHash, VerificationError>
fn new_builder() -> <NumberHash as Entity>::Builder
fn as_builder(self) -> <NumberHash as Entity>::Builder
Auto Trait Implementations§
impl RefUnwindSafe for NumberHash
impl Send for NumberHash
impl Sync for NumberHash
impl Unpin for NumberHash
impl UnwindSafe for NumberHash
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