Struct nanopow_rs::InputHash
[−]
[src]
pub struct InputHash(_);
A 32 byte array used to represent a valid input hash
Methods
impl InputHash
[src]
pub fn new(bytes: [u8; 32]) -> 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 an InputHash
pub fn from_bytes<T: AsRef<[u8]>>(bytes: T) -> Result<Self>
[src]
Create an InputHash from a raw byte slice
Trait Implementations
impl Clone for InputHash
[src]
fn clone(&self) -> InputHash
[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