pub enum SerializableShortintBootstrappingKey<InputScalar, C: Container<Element = c64>>where
InputScalar: UnsignedInteger,{
Classic {
bsk: FourierLweBootstrapKey<C>,
modulus_switch_noise_reduction_key: ModulusSwitchConfiguration<InputScalar>,
},
MultiBit {
fourier_bsk: FourierLweMultiBitBootstrapKey<C>,
deterministic_execution: bool,
},
}Variants§
Classic
Fields
§
bsk: FourierLweBootstrapKey<C>§
modulus_switch_noise_reduction_key: ModulusSwitchConfiguration<InputScalar>MultiBit
Implementations§
Source§impl<InputScalar, C: Container<Element = c64>> SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
impl<InputScalar, C: Container<Element = c64>> SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
Sourcepub fn is_classic(&self) -> bool
pub fn is_classic(&self) -> bool
Returns true if the serializable shortint bootstrapping key is Classic.
Trait Implementations§
Source§impl<InputScalar, C: Clone + Container<Element = c64>> Clone for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger + Clone,
impl<InputScalar, C: Clone + Container<Element = c64>> Clone for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger + Clone,
Source§fn clone(&self) -> SerializableShortintBootstrappingKey<InputScalar, C>
fn clone(&self) -> SerializableShortintBootstrappingKey<InputScalar, C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<InputScalar, C: Debug + Container<Element = c64>> Debug for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger + Debug,
impl<InputScalar, C: Debug + Container<Element = c64>> Debug for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger + Debug,
Source§impl<'de, InputScalar, C> Deserialize<'de> for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger + for<'a> Deserialize<'a>,
C: IntoContainerOwned + Container<Element = c64>,
impl<'de, InputScalar, C> Deserialize<'de> for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger + for<'a> Deserialize<'a>,
C: IntoContainerOwned + Container<Element = c64>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, InputScalar> From<&'a ShortintBootstrappingKey<InputScalar>> for SerializableShortintBootstrappingKey<InputScalar, &'a [c64]>where
InputScalar: UnsignedInteger,
impl<'a, InputScalar> From<&'a ShortintBootstrappingKey<InputScalar>> for SerializableShortintBootstrappingKey<InputScalar, &'a [c64]>where
InputScalar: UnsignedInteger,
Source§fn from(value: &'a ShortintBootstrappingKey<InputScalar>) -> Self
fn from(value: &'a ShortintBootstrappingKey<InputScalar>) -> Self
Converts to this type from the input type.
Source§impl<InputScalar> From<SerializableShortintBootstrappingKey<InputScalar, ABox<[Complex<f64>]>>> for ShortintBootstrappingKey<InputScalar>where
InputScalar: UnsignedInteger,
impl<InputScalar> From<SerializableShortintBootstrappingKey<InputScalar, ABox<[Complex<f64>]>>> for ShortintBootstrappingKey<InputScalar>where
InputScalar: UnsignedInteger,
Source§impl<InputScalar> From<ShortintBootstrappingKey<InputScalar>> for SerializableShortintBootstrappingKey<InputScalar, ABox<[c64]>>where
InputScalar: UnsignedInteger,
impl<InputScalar> From<ShortintBootstrappingKey<InputScalar>> for SerializableShortintBootstrappingKey<InputScalar, ABox<[c64]>>where
InputScalar: UnsignedInteger,
Source§fn from(value: ShortintBootstrappingKey<InputScalar>) -> Self
fn from(value: ShortintBootstrappingKey<InputScalar>) -> Self
Converts to this type from the input type.
Source§impl<InputScalar, C> Serialize for SerializableShortintBootstrappingKey<InputScalar, C>
impl<InputScalar, C> Serialize for SerializableShortintBootstrappingKey<InputScalar, C>
Source§impl<InputScalar, C: Container<Element = c64>> Unversionize for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
impl<InputScalar, C: Container<Element = c64>> Unversionize for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
Source§fn unversionize(
versioned: Self::VersionedOwned,
) -> Result<Self, UnversionizeError>
fn unversionize( versioned: Self::VersionedOwned, ) -> Result<Self, UnversionizeError>
Creates an object from a versioned enum, and eventually upgrades from previous
variants.
Source§impl<InputScalar, C: Container<Element = c64>> UnversionizeVec for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
impl<InputScalar, C: Container<Element = c64>> UnversionizeVec for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
fn unversionize_vec( versioned: Self::VersionedVec, ) -> Result<Vec<Self>, UnversionizeError>
Source§impl<InputScalar, C: Container<Element = c64>> Upgrade<SerializableShortintBootstrappingKey<InputScalar, C>> for SerializableShortintBootstrappingKeyV1<InputScalar, C>where
InputScalar: UnsignedInteger,
impl<InputScalar, C: Container<Element = c64>> Upgrade<SerializableShortintBootstrappingKey<InputScalar, C>> for SerializableShortintBootstrappingKeyV1<InputScalar, C>where
InputScalar: UnsignedInteger,
type Error = Infallible
fn upgrade( self, ) -> Result<SerializableShortintBootstrappingKey<InputScalar, C>, Self::Error>
Source§impl<InputScalar, C: Container<Element = c64>> Version for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
FourierLweBootstrapKey<C>: VersionizeOwned + Unversionize + Versionize,
ModulusSwitchConfiguration<InputScalar>: VersionizeOwned + Unversionize + Versionize,
FourierLweMultiBitBootstrapKey<C>: VersionizeOwned + Unversionize + Versionize,
bool: VersionizeOwned + Unversionize + Versionize,
impl<InputScalar, C: Container<Element = c64>> Version for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
FourierLweBootstrapKey<C>: VersionizeOwned + Unversionize + Versionize,
ModulusSwitchConfiguration<InputScalar>: VersionizeOwned + Unversionize + Versionize,
FourierLweMultiBitBootstrapKey<C>: VersionizeOwned + Unversionize + Versionize,
bool: VersionizeOwned + Unversionize + Versionize,
Source§impl<InputScalar, C: Container<Element = c64>> Versionize for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
impl<InputScalar, C: Container<Element = c64>> Versionize for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
Source§type Versioned<'vers> = <SerializableShortintBootstrappingKeyVersions<InputScalar, C> as VersionsDispatch<SerializableShortintBootstrappingKey<InputScalar, C>>>::Ref<'vers>
where
InputScalar: UnsignedInteger + 'vers,
C: 'vers
type Versioned<'vers> = <SerializableShortintBootstrappingKeyVersions<InputScalar, C> as VersionsDispatch<SerializableShortintBootstrappingKey<InputScalar, C>>>::Ref<'vers> where InputScalar: UnsignedInteger + 'vers, C: 'vers
The equivalent versioned type. It should have a variant for each version.
It may own the underlying data or only hold a read-only reference to it.
Source§fn versionize(&self) -> Self::Versioned<'_>
fn versionize(&self) -> Self::Versioned<'_>
Wraps the object into a versioned enum with a variant for each version. This will
use references on the underlying types if possible.
Source§impl<InputScalar, C: Container<Element = c64>> VersionizeOwned for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
impl<InputScalar, C: Container<Element = c64>> VersionizeOwned for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
type VersionedOwned = <SerializableShortintBootstrappingKeyVersions<InputScalar, C> as VersionsDispatch<SerializableShortintBootstrappingKey<InputScalar, C>>>::Owned where InputScalar: UnsignedInteger
Source§fn versionize_owned(self) -> Self::VersionedOwned
fn versionize_owned(self) -> Self::VersionedOwned
Wraps the object into a versioned enum with a variant for each version. This will
clone the underlying types.
Source§impl<InputScalar, C: Container<Element = c64>> VersionizeSlice for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
impl<InputScalar, C: Container<Element = c64>> VersionizeSlice for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
type VersionedSlice<'vers> = Vec<<SerializableShortintBootstrappingKey<InputScalar, C> as Versionize>::Versioned<'vers>> where InputScalar: UnsignedInteger + 'vers, C: 'vers
fn versionize_slice(slice: &[Self]) -> Self::VersionedSlice<'_>
Source§impl<InputScalar, C: Container<Element = c64>> VersionizeVec for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
impl<InputScalar, C: Container<Element = c64>> VersionizeVec for SerializableShortintBootstrappingKey<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyVersions<InputScalar, C>: VersionsDispatch<Self>,
type VersionedVec = Vec<<SerializableShortintBootstrappingKey<InputScalar, C> as VersionizeOwned>::VersionedOwned> where InputScalar: UnsignedInteger
fn versionize_vec(vec: Vec<Self>) -> Self::VersionedVec
Source§impl<InputScalar, C: Container<Element = c64>> VersionsDispatch<SerializableShortintBootstrappingKey<InputScalar, C>> for SerializableShortintBootstrappingKeyVersions<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyV0<C>: Version + Upgrade<SerializableShortintBootstrappingKeyV1<InputScalar, C>>,
SerializableShortintBootstrappingKeyV1<InputScalar, C>: Version + Upgrade<SerializableShortintBootstrappingKey<InputScalar, C>>,
SerializableShortintBootstrappingKey<InputScalar, C>: Version,
impl<InputScalar, C: Container<Element = c64>> VersionsDispatch<SerializableShortintBootstrappingKey<InputScalar, C>> for SerializableShortintBootstrappingKeyVersions<InputScalar, C>where
InputScalar: UnsignedInteger,
SerializableShortintBootstrappingKeyV0<C>: Version + Upgrade<SerializableShortintBootstrappingKeyV1<InputScalar, C>>,
SerializableShortintBootstrappingKeyV1<InputScalar, C>: Version + Upgrade<SerializableShortintBootstrappingKey<InputScalar, C>>,
SerializableShortintBootstrappingKey<InputScalar, C>: Version,
Auto Trait Implementations§
impl<InputScalar, C> Freeze for SerializableShortintBootstrappingKey<InputScalar, C>where
C: Freeze,
impl<InputScalar, C> RefUnwindSafe for SerializableShortintBootstrappingKey<InputScalar, C>where
C: RefUnwindSafe,
InputScalar: RefUnwindSafe,
impl<InputScalar, C> Send for SerializableShortintBootstrappingKey<InputScalar, C>where
C: Send,
impl<InputScalar, C> Sync for SerializableShortintBootstrappingKey<InputScalar, C>where
C: Sync,
impl<InputScalar, C> Unpin for SerializableShortintBootstrappingKey<InputScalar, C>
impl<InputScalar, C> UnsafeUnpin for SerializableShortintBootstrappingKey<InputScalar, C>where
C: UnsafeUnpin,
impl<InputScalar, C> UnwindSafe for SerializableShortintBootstrappingKey<InputScalar, C>where
C: UnwindSafe,
InputScalar: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more