Struct nanopow_rs::Work
[−]
[src]
pub struct Work(_);
An 8 byte array used to represent the work value
Methods
impl Work
[src]
pub fn new(bytes: [u8; 8]) -> Self
[src]
Create Work from properly sized byte array
pub fn from_hex<T: AsRef<[u8]>>(s: T) -> Result<Self>
[src]
Convert hexadecimal formatted data into a Work value
pub fn from_bytes<T: AsRef<[u8]>>(bytes: T) -> Result<Self>
[src]
Create Work from a raw byte slice
Trait Implementations
impl Clone for Work
[src]
fn clone(&self) -> Work
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more