Struct ckb_types::packed::CompactBlockBuilder
source · pub struct CompactBlockBuilder { /* private fields */ }
Implementations§
source§impl CompactBlockBuilder
impl CompactBlockBuilder
pub const FIELD_COUNT: usize = 5usize
pub fn header(self, v: Header) -> CompactBlockBuilder
pub fn short_ids(self, v: ProposalShortIdVec) -> CompactBlockBuilder
pub fn prefilled_transactions( self, v: IndexTransactionVec ) -> CompactBlockBuilder
pub fn uncles(self, v: Byte32Vec) -> CompactBlockBuilder
pub fn proposals(self, v: ProposalShortIdVec) -> CompactBlockBuilder
Trait Implementations§
source§impl Builder for CompactBlockBuilder
impl Builder for CompactBlockBuilder
source§impl Debug for CompactBlockBuilder
impl Debug for CompactBlockBuilder
source§impl Default for CompactBlockBuilder
impl Default for CompactBlockBuilder
source§fn default() -> CompactBlockBuilder
fn default() -> CompactBlockBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CompactBlockBuilder
impl Send for CompactBlockBuilder
impl Sync for CompactBlockBuilder
impl Unpin for CompactBlockBuilder
impl UnwindSafe for CompactBlockBuilder
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