Trait seec::protocols::SetupStorage

source ·
pub trait SetupStorage: Default + Sized + Send + Sync {
    // Required methods
    fn len(&self) -> usize;
    fn split_off_last(&mut self, count: usize) -> Self;
    fn reserve(&mut self, additional: usize);
    fn append(&mut self, other: Self);

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn remove_first(&mut self, count: usize) -> Self { ... }
}

Required Methods§

source

fn len(&self) -> usize

source

fn split_off_last(&mut self, count: usize) -> Self

Split of the last count mul triples.

source

fn reserve(&mut self, additional: usize)

source

fn append(&mut self, other: Self)

Provided Methods§

source

fn is_empty(&self) -> bool

source

fn remove_first(&mut self, count: usize) -> Self

Removes the first count elements from self and returns them.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl SetupStorage for seec::mul_triple::boolean::MulTriples

source§

impl SetupStorage for seec::protocols::aby2::SetupData

source§

impl SetupStorage for seec::protocols::tensor_aby2::SetupData

source§

impl<R: Default + Send + Sync> SetupStorage for seec::mul_triple::arithmetic::MulTriples<R>

source§

impl<R: Ring> SetupStorage for MixedSetupStorage<R>