[][src]Struct xaynet_core::mask::MaskConfig

pub struct MaskConfig {
    pub group_type: GroupType,
    pub data_type: DataType,
    pub bound_type: BoundType,
    pub model_type: ModelType,
}

A masking configuration.

This configuration is applied for masking, aggregation and unmasking of models.

Fields

group_type: GroupType

The order of the finite group.

data_type: DataType

The original primitive data type of the numerical values to be masked.

bound_type: BoundType

The bounds of the numerical values.

model_type: ModelType

The maximum number of models to be aggregated.

Implementations

impl MaskConfig[src]

pub fn add_shift(&self) -> Ratio<BigInt>[src]

Gets the additional shift value for masking/unmasking.

pub fn exp_shift(&self) -> BigInt[src]

Gets the exponential shift value for masking/unmasking.

pub fn order(&self) -> BigUint[src]

Gets the finite group order value for masking/unmasking.

Trait Implementations

impl Clone for MaskConfig[src]

impl Copy for MaskConfig[src]

impl Debug for MaskConfig[src]

impl<'de> Deserialize<'de> for MaskConfig[src]

impl Eq for MaskConfig[src]

impl FromBytes for MaskConfig[src]

impl Hash for MaskConfig[src]

impl PartialEq<MaskConfig> for MaskConfig[src]

impl Serialize for MaskConfig[src]

impl StructuralEq for MaskConfig[src]

impl StructuralPartialEq for MaskConfig[src]

impl ToBytes for MaskConfig[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,