pub struct UncleBlock(/* private fields */);Implementations§
Source§impl UncleBlock
impl UncleBlock
pub const FIELD_COUNT: usize = 2
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn header(&self) -> Header
pub fn proposals(&self) -> ProposalShortIdVec
pub fn as_reader<'r>(&'r self) -> UncleBlockReader<'r>
Trait Implementations§
Source§impl Clone for UncleBlock
impl Clone for UncleBlock
Source§fn clone(&self) -> UncleBlock
fn clone(&self) -> UncleBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UncleBlock
impl Debug for UncleBlock
Source§impl Default for UncleBlock
impl Default for UncleBlock
Source§impl Display for UncleBlock
impl Display for UncleBlock
Source§impl Entity for UncleBlock
impl Entity for UncleBlock
const NAME: &'static str = "UncleBlock"
type Builder = UncleBlockBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Auto Trait Implementations§
impl !Freeze for UncleBlock
impl RefUnwindSafe for UncleBlock
impl Send for UncleBlock
impl Sync for UncleBlock
impl Unpin for UncleBlock
impl UnsafeUnpin for UncleBlock
impl UnwindSafe for UncleBlock
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