pub trait IsBitDecomposable:
Shl<usize, Output = Self>
+ Shr<usize, Output = Self>
+ BitOr<Output = Self>
+ Sized
+ Copy {
// Required method
fn get_bit(&self, index: usize) -> Self;
// Provided methods
fn rotr(&self, index: usize) -> Self { ... }
fn rotl(&self, index: usize) -> Self { ... }
}Expand description
A trait to deal with bit decomposition and bit rotation as needed by SHA-2 family of hash functions.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.