[][src]Struct sapling_crypto_ce::as_waksman::IntegerPermutation

pub struct IntegerPermutation {
    pub elements: Vec<usize>,
    pub min: usize,
    pub max: usize,
}

Fields

elements: Vec<usize>min: usizemax: usize

Methods

impl IntegerPermutation[src]

pub fn new(size: usize) -> Self[src]

pub fn new_from_permutation(permutation: Vec<u64>) -> Self[src]

pub fn size(&self) -> usize[src]

pub fn make_permutation<R: Rng>(&mut self, rng: &mut R)[src]

pub fn get(&self, index: usize) -> usize[src]

pub fn set(&mut self, index: usize, value: usize)[src]

pub fn slice(&self, min: usize, max: usize) -> Self[src]

pub fn inverse(&self) -> Self[src]

pub fn is_valid(&self) -> bool[src]

Trait Implementations

impl Debug for IntegerPermutation[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self