pub struct FixedBlock { /* private fields */ }
Expand description
Read only view of a block with more strict structs for hash sensitive structs. Warning: This is experimental and may be removed or changed in the future.
Implementations§
Source§impl FixedBlock
impl FixedBlock
pub fn from_bytes(bytes: Vec<u8>) -> Result<FixedBlock, DeserializeError>
Source§impl FixedBlock
impl FixedBlock
pub fn from_hex(hex_str: &str) -> Result<FixedBlock, DeserializeError>
Source§impl FixedBlock
impl FixedBlock
pub fn header(&self) -> Header
pub fn transaction_bodies(&self) -> FixedTransactionBodies
pub fn transaction_witness_sets(&self) -> TransactionWitnessSets
pub fn auxiliary_data_set(&self) -> AuxiliaryDataSet
pub fn invalid_transactions(&self) -> TransactionIndexes
pub fn block_hash(&self) -> BlockHash
Trait Implementations§
Source§impl Clone for FixedBlock
impl Clone for FixedBlock
Source§fn clone(&self) -> FixedBlock
fn clone(&self) -> FixedBlock
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 FixedBlock
impl Debug for FixedBlock
Source§impl PartialEq for FixedBlock
impl PartialEq for FixedBlock
impl Eq for FixedBlock
impl StructuralPartialEq for FixedBlock
Auto Trait Implementations§
impl Freeze for FixedBlock
impl RefUnwindSafe for FixedBlock
impl !Send for FixedBlock
impl !Sync for FixedBlock
impl Unpin for FixedBlock
impl UnwindSafe for FixedBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more