Struct bp7::canonical::CanonicalBlockBuilder
source · [−]pub struct CanonicalBlockBuilder { /* private fields */ }
Implementations
sourceimpl CanonicalBlockBuilder
impl CanonicalBlockBuilder
pub fn new() -> Self
pub fn block_type(self, block_type: CanonicalBlockType) -> Self
pub fn block_number(self, block_number: u64) -> Self
pub fn block_control_flags(
self,
block_control_flags: BlockControlFlagsType
) -> Self
pub fn crc(self, crc: CrcValue) -> Self
pub fn data(self, data: CanonicalData) -> Self
pub fn build(self) -> Result<CanonicalBlock, CanonicalBuilderError>
Trait Implementations
sourceimpl Clone for CanonicalBlockBuilder
impl Clone for CanonicalBlockBuilder
sourcefn clone(&self) -> CanonicalBlockBuilder
fn clone(&self) -> CanonicalBlockBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CanonicalBlockBuilder
impl Debug for CanonicalBlockBuilder
sourceimpl Default for CanonicalBlockBuilder
impl Default for CanonicalBlockBuilder
sourcefn default() -> CanonicalBlockBuilder
fn default() -> CanonicalBlockBuilder
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CanonicalBlockBuilder> for CanonicalBlockBuilder
impl PartialEq<CanonicalBlockBuilder> for CanonicalBlockBuilder
sourcefn eq(&self, other: &CanonicalBlockBuilder) -> bool
fn eq(&self, other: &CanonicalBlockBuilder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CanonicalBlockBuilder) -> bool
fn ne(&self, other: &CanonicalBlockBuilder) -> bool
This method tests for !=
.
impl StructuralPartialEq for CanonicalBlockBuilder
Auto Trait Implementations
impl RefUnwindSafe for CanonicalBlockBuilder
impl Send for CanonicalBlockBuilder
impl Sync for CanonicalBlockBuilder
impl Unpin for CanonicalBlockBuilder
impl UnwindSafe for CanonicalBlockBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more