Trait seec::protocols::Share

source ·
pub trait Share: Clone + Default + Debug + PartialEq + PartialOrd + Hash + Send + Sync + 'static {
    type Plain: Plain;
    type SimdShare: ShareStorage<Self> + Clone + Default + Debug + PartialEq + PartialOrd + Hash;

    // Provided methods
    fn to_simd(self, len: usize) -> Self::SimdShare { ... }
    fn zero(&self) -> Self { ... }
}

Required Associated Types§

Provided Methods§

source

fn to_simd(self, len: usize) -> Self::SimdShare

source

fn zero(&self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Share for bool

§

type Plain = bool

§

type SimdShare = BitVec

source§

impl Share for u8

§

type Plain = u8

§

type SimdShare = Vec<u8>

source§

impl Share for u16

§

type Plain = u16

§

type SimdShare = Vec<u16>

source§

impl Share for u32

§

type Plain = u32

§

type SimdShare = Vec<u32>

source§

impl Share for u64

§

type Plain = u64

§

type SimdShare = Vec<u64>

source§

impl Share for u128

Implementors§