Trait ShiftingValue

Source
pub trait ShiftingValue<F: Field> {
    type MyShift;

    // Required methods
    fn shift() -> Self::MyShift;
    fn of_field(field: F) -> Self;
    fn shifted_to_field(&self) -> F;
    fn shifted_raw(&self) -> F;
    fn of_raw(shifted: F) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn shift() -> Self::MyShift

Source

fn of_field(field: F) -> Self

Source

fn shifted_to_field(&self) -> F

Source

fn shifted_raw(&self) -> F

Source

fn of_raw(shifted: F) -> Self

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.

Implementors§

Source§

impl ShiftingValue<Fp256<FpParameters>> for ShiftedValue<Fp>

Source§

type MyShift = Shift<Fp256<FpParameters>>

Source§

impl ShiftingValue<Fp256<FqParameters>> for ShiftedValue<Fq>