FheIntegerType

Trait FheIntegerType 

Source
pub trait FheIntegerType: Tagged + Sealed {
    type Id: IntegerId;

    // Required methods
    fn on_cpu(&self) -> MaybeCloned<'_, <Self::Id as IntegerId>::InnerCpu>;
    fn into_cpu(self) -> <Self::Id as IntegerId>::InnerCpu;
    fn from_cpu(
        inner: <Self::Id as IntegerId>::InnerCpu,
        tag: Tag,
        re_randomization_metadata: ReRandomizationMetadata,
    ) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn on_cpu(&self) -> MaybeCloned<'_, <Self::Id as IntegerId>::InnerCpu>

Source

fn into_cpu(self) -> <Self::Id as IntegerId>::InnerCpu

Source

fn from_cpu( inner: <Self::Id as IntegerId>::InnerCpu, tag: Tag, re_randomization_metadata: ReRandomizationMetadata, ) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Id> FheIntegerType for FheInt<Id>
where Id: FheIntId,

Available on crate feature integer only.
Source§

type Id = Id

Source§

impl<Id> FheIntegerType for FheUint<Id>
where Id: FheUintId,

Available on crate feature integer only.
Source§

type Id = Id