Struct nisty::Seed[][src]

pub struct Seed(_);

32 entropic bytes, input for key generation.

Implementations

impl Seed[src]

pub fn from_bytes(seed_bytes: [u8; 32]) -> Self[src]

pub fn to_bytes(self) -> [u8; 32][src]

pub fn as_bytes(&self) -> &[u8; 32][src]

Trait Implementations

impl AsArrayRef<[u8; 32]> for Seed[src]

impl AsArrayRef<[u8; 32]> for &Seed[src]

impl Clone for Seed[src]

impl Copy for Seed[src]

impl Debug for Seed[src]

impl From<[u8; 32]> for Seed[src]

impl Into<[u8; 32]> for Seed[src]

impl PartialEq<Seed> for Seed[src]

impl StructuralPartialEq for Seed[src]

Auto Trait Implementations

impl Send for Seed[src]

impl Sync for Seed[src]

impl Unpin for Seed[src]

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> Same<T> for T

type Output = T

Should always be Self

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.