[][src]Struct curl::curl::Curl

pub struct Curl { /* fields omitted */ }

Implementations

impl Curl[src]

pub fn absorb(&mut self, trits: &[i8])[src]

Absorb trits into the sponge

pub fn squeeze(&mut self, out: &mut [i8])[src]

Squeeze trits out of the sponge and copy them into out

pub fn reset(&mut self)[src]

Reset the sponge to initial state

pub fn digest(&mut self, input: &[i8], output: &mut [i8])[src]

Digest inputs and then compute the hash with length of provided output slice

pub fn new(rounds: usize) -> Curl[src]

pub fn state(&self) -> &[i8][src]

Trait Implementations

impl Clone for Curl[src]

impl Copy for Curl[src]

impl Debug for Curl[src]

impl Default for Curl[src]

Auto Trait Implementations

impl RefUnwindSafe for Curl

impl Send for Curl

impl Sync for Curl

impl Unpin for Curl

impl UnwindSafe for Curl

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.