Struct bip_util::sha::ShaHashBuilder
[−]
[src]
pub struct ShaHashBuilder { /* fields omitted */ }
Building ShaHash
objects by adding byte slices to the hash.
Methods
impl ShaHashBuilder
[src]
fn new() -> ShaHashBuilder
Create a new ShaHashBuilder
.
fn add_bytes(self, bytes: &[u8]) -> ShaHashBuilder
Add bytes to the ShaHashBuilder
.
fn build(&self) -> ShaHash
Build the ShaHash from the ShaHashBuilder
.
Trait Implementations
impl Clone for ShaHashBuilder
[src]
fn clone(&self) -> ShaHashBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more