[][src]Struct scuttlebutt::Block512

pub struct Block512(_);

A 512-bit value.

Methods

impl Block512[src]

pub fn prefix(&self, n: usize) -> &[u8][src]

Return the first n bytes, where n must be <= 64.

pub fn prefix_mut(&mut self, n: usize) -> &mut [u8][src]

Return the first n bytes as mutable, where n must be <= 64.

Trait Implementations

impl Eq for Block512[src]

impl PartialEq<Block512> for Block512[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl PartialOrd<Block512> for Block512[src]

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Copy for Block512[src]

impl AsMut<[u8]> for Block512[src]

impl Ord for Block512[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl AsRef<[u8]> for Block512[src]

impl Default for Block512[src]

impl From<Block512> for [u32; 16][src]

impl From<Block512> for [__m128i; 4][src]

impl From<Block512> for [Block; 4][src]

impl<'a> From<&'a Block512> for &'a [Block; 4][src]

impl<'a> From<&'a mut Block512> for &'a mut [Block; 4][src]

impl<'a> From<&'a mut Block512> for &'a mut [u8; 64][src]

impl From<[__m128i; 4]> for Block512[src]

impl From<[Block; 4]> for Block512[src]

impl From<[u8; 64]> for Block512[src]

impl From<Block512> for __m512i[src]

impl From<__m512i> for Block512[src]

impl Clone for Block512[src]

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

Performs copy-assignment from source. Read more

impl Hash for Block512[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl BitXor<Block512> for Block512[src]

type Output = Self

The resulting type after applying the ^ operator.

impl BitXorAssign<Block512> for Block512[src]

impl Display for Block512[src]

impl Debug for Block512[src]

impl<'_> TryFrom<&'_ [u8]> for Block512[src]

type Error = TryFromSliceError

The type returned in the event of a conversion error.

impl Distribution<Block512> for Standard[src]

fn sample_iter<R>(&'a self, rng: &'a mut R) -> DistIter<'a, Self, R, T> where
    R: Rng
[src]

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Auto Trait Implementations

impl Send for Block512

impl Sync for Block512

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

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.

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

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

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> FromCast<T> for T

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> FromBits<T> for T

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default