pub struct Block {
pub header: BlockHeader,
pub transactions: Confined<Vec<Tx>, 0, bc::::coding::VarIntArray::{constant#1}>,
}
Fields§
§header: BlockHeader
§transactions: Confined<Vec<Tx>, 0, bc::::coding::VarIntArray::{constant#1}>
Implementations§
Trait Implementations§
Source§impl ConsensusDecode for Block
impl ConsensusDecode for Block
fn consensus_decode( reader: &mut impl Read, ) -> Result<Block, ConsensusDecodeError>
fn consensus_deserialize( bytes: impl AsRef<[u8]>, ) -> Result<Self, ConsensusDecodeError>
Source§impl ConsensusEncode for Block
impl ConsensusEncode for Block
Source§impl StrictDecode for Block
impl StrictDecode for Block
fn strict_decode(reader: &mut impl TypedRead) -> Result<Block, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for Block
impl StrictDumb for Block
fn strict_dumb() -> Block
Source§impl StrictEncode for Block
impl StrictEncode for Block
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for Block
impl StrictStruct for Block
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for Block
impl StrictType for Block
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
impl Eq for Block
impl StrictProduct for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.