Struct paillier::coding::integral::Code [] [src]

pub struct Code<I> {
    pub component_count: usize,
    pub component_size: usize,
    pub _phantom: PhantomData<I>,
}

Integral code for scalars and vectors.

Fields

Number of components to expect in vectors.

Bits to allocate for each component in vectors, including gap space.

Methods

impl<I> Code<I>
[src]

Trait Implementations

impl<I> Encoder<u64> for Code<I> where I: From<u64>
[src]

Encode T types into Target types.

impl<I> Encoder<Vec<u64>> for Code<I> where I: One,
        I: Clone,
        I: From<u64>,
        I: Shl<usize, Output=I>,
        I: Add<I, Output=I>,
        &'a I: Rem<&'b I, Output=I>,
        &'a I: Shr<usize, Output=I>
[src]

Encode T types into Target types.

impl<I> Decoder<u64> for Code<I> where u64: ConvertFrom<I>
[src]

Decode Source types into T types.

impl<I> Decoder<Vec<u64>> for Code<I> where u64: ConvertFrom<I>,
        I: One,
        I: Clone,
        I: From<u64>,
        I: Shl<usize, Output=I>,
        I: Add<I, Output=I>,
        &'a I: Rem<&'b I, Output=I>,
        &'a I: Shr<usize, Output=I>
[src]

Decode Source types into T types.