pub type FheInt16 = FheInt<FheInt16Id>;
Available on crate feature
integer
only.Expand description
A signed integer type with 16 bits
See FheInt
Aliased Type§
struct FheInt16 { /* private fields */ }
Trait Implementations§
source§impl AddAssign<i16> for FheInt16
impl AddAssign<i16> for FheInt16
source§fn add_assign(&mut self, rhs: i16)
fn add_assign(&mut self, rhs: i16)
Adds a clear to a super::FheInt16
The operation is modular, i.e. on overflow it wraps around.
§Example
use tfhe::prelude::*;
use tfhe::{generate_keys, set_server_key, ConfigBuilder, FheInt16};
let (client_key, server_key) = generate_keys(ConfigBuilder::default());
set_server_key(server_key);
let mut a = FheInt16::encrypt(3i16, &client_key);
let b = 23i16;
a += b;
let result: i16 = a.decrypt(&client_key);
assert_eq!(result, 23i16 + 3i16);
source§impl BitAndAssign<i16> for FheInt16
impl BitAndAssign<i16> for FheInt16
source§fn bitand_assign(&mut self, rhs: i16)
fn bitand_assign(&mut self, rhs: i16)
Performs the
&=
operation. Read moresource§impl BitOrAssign<i16> for FheInt16
impl BitOrAssign<i16> for FheInt16
source§fn bitor_assign(&mut self, rhs: i16)
fn bitor_assign(&mut self, rhs: i16)
Performs the
|=
operation. Read moresource§impl BitXorAssign<i16> for FheInt16
impl BitXorAssign<i16> for FheInt16
source§fn bitxor_assign(&mut self, rhs: i16)
fn bitxor_assign(&mut self, rhs: i16)
Performs the
^=
operation. Read moresource§impl DivAssign<i16> for FheInt16
impl DivAssign<i16> for FheInt16
source§fn div_assign(&mut self, rhs: i16)
fn div_assign(&mut self, rhs: i16)
Performs the
/=
operation. Read moresource§impl MulAssign<i16> for FheInt16
impl MulAssign<i16> for FheInt16
source§fn mul_assign(&mut self, rhs: i16)
fn mul_assign(&mut self, rhs: i16)
Performs the
*=
operation. Read moresource§impl RemAssign<i16> for FheInt16
impl RemAssign<i16> for FheInt16
source§fn rem_assign(&mut self, rhs: i16)
fn rem_assign(&mut self, rhs: i16)
Performs the
%=
operation. Read moresource§impl RotateLeft<u128> for &FheInt16
impl RotateLeft<u128> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u128) -> Self::Output
source§impl RotateLeft<u128> for FheInt16
impl RotateLeft<u128> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u128) -> Self::Output
source§impl RotateLeft<u16> for &FheInt16
impl RotateLeft<u16> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u16) -> Self::Output
source§impl RotateLeft<u16> for FheInt16
impl RotateLeft<u16> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u16) -> Self::Output
source§impl RotateLeft<u32> for &FheInt16
impl RotateLeft<u32> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u32) -> Self::Output
source§impl RotateLeft<u32> for FheInt16
impl RotateLeft<u32> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u32) -> Self::Output
source§impl RotateLeft<u64> for &FheInt16
impl RotateLeft<u64> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u64) -> Self::Output
source§impl RotateLeft<u64> for FheInt16
impl RotateLeft<u64> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u64) -> Self::Output
source§impl RotateLeft<u8> for &FheInt16
impl RotateLeft<u8> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u8) -> Self::Output
source§impl RotateLeft<u8> for FheInt16
impl RotateLeft<u8> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_left(self, rhs: u8) -> Self::Output
source§impl RotateLeftAssign<u128> for FheInt16
impl RotateLeftAssign<u128> for FheInt16
fn rotate_left_assign(&mut self, rhs: u128)
source§impl RotateLeftAssign<u16> for FheInt16
impl RotateLeftAssign<u16> for FheInt16
fn rotate_left_assign(&mut self, rhs: u16)
source§impl RotateLeftAssign<u32> for FheInt16
impl RotateLeftAssign<u32> for FheInt16
fn rotate_left_assign(&mut self, rhs: u32)
source§impl RotateLeftAssign<u64> for FheInt16
impl RotateLeftAssign<u64> for FheInt16
fn rotate_left_assign(&mut self, rhs: u64)
source§impl RotateLeftAssign<u8> for FheInt16
impl RotateLeftAssign<u8> for FheInt16
fn rotate_left_assign(&mut self, rhs: u8)
source§impl RotateRight<u128> for &FheInt16
impl RotateRight<u128> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u128) -> Self::Output
source§impl RotateRight<u128> for FheInt16
impl RotateRight<u128> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u128) -> Self::Output
source§impl RotateRight<u16> for &FheInt16
impl RotateRight<u16> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u16) -> Self::Output
source§impl RotateRight<u16> for FheInt16
impl RotateRight<u16> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u16) -> Self::Output
source§impl RotateRight<u32> for &FheInt16
impl RotateRight<u32> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u32) -> Self::Output
source§impl RotateRight<u32> for FheInt16
impl RotateRight<u32> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u32) -> Self::Output
source§impl RotateRight<u64> for &FheInt16
impl RotateRight<u64> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u64) -> Self::Output
source§impl RotateRight<u64> for FheInt16
impl RotateRight<u64> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u64) -> Self::Output
source§impl RotateRight<u8> for &FheInt16
impl RotateRight<u8> for &FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u8) -> Self::Output
source§impl RotateRight<u8> for FheInt16
impl RotateRight<u8> for FheInt16
type Output = FheInt<FheInt16Id>
fn rotate_right(self, rhs: u8) -> Self::Output
source§impl RotateRightAssign<u128> for FheInt16
impl RotateRightAssign<u128> for FheInt16
fn rotate_right_assign(&mut self, rhs: u128)
source§impl RotateRightAssign<u16> for FheInt16
impl RotateRightAssign<u16> for FheInt16
fn rotate_right_assign(&mut self, rhs: u16)
source§impl RotateRightAssign<u32> for FheInt16
impl RotateRightAssign<u32> for FheInt16
fn rotate_right_assign(&mut self, rhs: u32)
source§impl RotateRightAssign<u64> for FheInt16
impl RotateRightAssign<u64> for FheInt16
fn rotate_right_assign(&mut self, rhs: u64)
source§impl RotateRightAssign<u8> for FheInt16
impl RotateRightAssign<u8> for FheInt16
fn rotate_right_assign(&mut self, rhs: u8)
source§impl ShlAssign<u128> for FheInt16
impl ShlAssign<u128> for FheInt16
source§fn shl_assign(&mut self, rhs: u128)
fn shl_assign(&mut self, rhs: u128)
Performs the
<<=
operation. Read moresource§impl ShlAssign<u16> for FheInt16
impl ShlAssign<u16> for FheInt16
source§fn shl_assign(&mut self, rhs: u16)
fn shl_assign(&mut self, rhs: u16)
Performs the
<<=
operation. Read moresource§impl ShlAssign<u32> for FheInt16
impl ShlAssign<u32> for FheInt16
source§fn shl_assign(&mut self, rhs: u32)
fn shl_assign(&mut self, rhs: u32)
Performs the
<<=
operation. Read moresource§impl ShlAssign<u64> for FheInt16
impl ShlAssign<u64> for FheInt16
source§fn shl_assign(&mut self, rhs: u64)
fn shl_assign(&mut self, rhs: u64)
Performs the
<<=
operation. Read moresource§impl ShlAssign<u8> for FheInt16
impl ShlAssign<u8> for FheInt16
source§fn shl_assign(&mut self, rhs: u8)
fn shl_assign(&mut self, rhs: u8)
Performs the
<<=
operation. Read moresource§impl ShrAssign<u128> for FheInt16
impl ShrAssign<u128> for FheInt16
source§fn shr_assign(&mut self, rhs: u128)
fn shr_assign(&mut self, rhs: u128)
Performs the
>>=
operation. Read moresource§impl ShrAssign<u16> for FheInt16
impl ShrAssign<u16> for FheInt16
source§fn shr_assign(&mut self, rhs: u16)
fn shr_assign(&mut self, rhs: u16)
Performs the
>>=
operation. Read moresource§impl ShrAssign<u32> for FheInt16
impl ShrAssign<u32> for FheInt16
source§fn shr_assign(&mut self, rhs: u32)
fn shr_assign(&mut self, rhs: u32)
Performs the
>>=
operation. Read moresource§impl ShrAssign<u64> for FheInt16
impl ShrAssign<u64> for FheInt16
source§fn shr_assign(&mut self, rhs: u64)
fn shr_assign(&mut self, rhs: u64)
Performs the
>>=
operation. Read moresource§impl ShrAssign<u8> for FheInt16
impl ShrAssign<u8> for FheInt16
source§fn shr_assign(&mut self, rhs: u8)
fn shr_assign(&mut self, rhs: u8)
Performs the
>>=
operation. Read more