[][src]Struct buildchain::Sha384

pub struct Sha384(_);

A serializable representation of a Sha384 hash

Methods

impl Sha384[src]

pub fn new<R: Read>(input: R) -> Result<Sha384>[src]

Create a new Sha384 by reading the provided input

Arguments

  • input - A std::io::Read object that will be used as input to the Sha384 algorithm

Return

The Sha384 of the provided input data

Errors

Errors that are encountered while reading will be returned

Example

use buildchain::Sha384;

let data = "Input";
let sha = Sha384::new(data.as_bytes()).unwrap();

pub fn to_base32(&self) -> String[src]

Trait Implementations

impl PartialEq<Sha384> for Sha384[src]

impl Clone for Sha384[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Sha384[src]

impl Debug for Sha384[src]

impl Serialize for Sha384[src]

impl<'de> Deserialize<'de> for Sha384[src]

Auto Trait Implementations

impl Send for Sha384

impl Sync for Sha384

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self