Skip to main content

ShiftingValue

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".

Implementors§

Source§

impl ShiftingValue<Fp<MontBackend<FqConfig, 4>, 4>> for ShiftedValue<Fp>

Source§

type MyShift = Shift<Fp<MontBackend<FqConfig, 4>, 4>>

Source§

impl ShiftingValue<Fp<MontBackend<FrConfig, 4>, 4>> for ShiftedValue<Fq>