Trait Retrieve

Source
pub trait Retrieve {
    type Output;

    // Required method
    fn retrieve(&self) -> Self::Output;
}
Expand description

A generalization for numbers kept in optimized representations (e.g. Montgomery) that can be converted back to the original form.

Required Associated Types§

Source

type Output

The original type.

Required Methods§

Source

fn retrieve(&self) -> Self::Output

Convert the number back from the optimized representation.

Implementors§

Source§

impl Retrieve for BoxedMontyForm

Available on crate feature alloc only.
Source§

impl<MOD: ConstMontyParams<LIMBS>, const LIMBS: usize> Retrieve for ConstMontyForm<MOD, LIMBS>

Source§

type Output = Uint<LIMBS>

Source§

impl<const LIMBS: usize> Retrieve for MontyForm<LIMBS>

Source§

type Output = Uint<LIMBS>