[−][src]Struct scuttlebutt::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]
fn eq(&self, other: &Block512) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialOrd<Block512> for Block512
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.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 cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
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(&self) -> 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<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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.
fn bitxor(self, rhs: Self) -> Self
[src]
impl BitXorAssign<Block512> for Block512
[src]
fn bitxor_assign(&mut self, rhs: Self)
[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.
fn try_from(u: &[u8]) -> Result<Self, Self::Error>
[src]
impl Distribution<Block512> for Standard
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,