pub trait Ring: WrappingAdd + WrappingSub + WrappingMul + Pow<u32, Output = Self> + BitAnd<Output = Self> + BitXor<Output = Self> + Shl<usize, Output = Self> + Shr<usize, Output = Self> + Plain + Share<Plain = Self> + Ord + Eq + RemoteSend + 'static + Sized {
const BITS: usize;
const BYTES: usize;
const MAX: Self;
const ZERO: Self;
const ONE: Self;
// Required method
fn from_block(b: Block) -> Self;
// Provided method
fn get_bit(&self, idx: usize) -> bool { ... }
}
Required Associated Constants§
const BITS: usize
const BYTES: usize
const MAX: Self
const ZERO: Self
const ONE: Self
Required Methods§
fn from_block(b: Block) -> Self
Provided Methods§
Object Safety§
This trait is not object safe.