[−][src]Struct xaynet_core::mask::MaskConfig
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]
fn clone(&self) -> MaskConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MaskConfig
[src]
impl Debug for MaskConfig
[src]
impl<'de> Deserialize<'de> for MaskConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for MaskConfig
[src]
impl FromBytes for MaskConfig
[src]
fn from_bytes<T: AsRef<[u8]>>(buffer: &T) -> Result<Self, DecodeError>
[src]
impl Hash for MaskConfig
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<MaskConfig> for MaskConfig
[src]
fn eq(&self, other: &MaskConfig) -> bool
[src]
fn ne(&self, other: &MaskConfig) -> bool
[src]
impl Serialize for MaskConfig
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for MaskConfig
[src]
impl StructuralPartialEq for MaskConfig
[src]
impl ToBytes for MaskConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for MaskConfig
impl Send for MaskConfig
impl Sync for MaskConfig
impl Unpin for MaskConfig
impl UnwindSafe for MaskConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,