Type Alias tfhe::FheInt16

source ·
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 Add<i16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<i16> for FheInt16

source§

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 BitAnd<i16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: i16) -> Self::Output

Performs the & operation. Read more
source§

impl BitAnd<i16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: i16) -> Self::Output

Performs the & operation. Read more
source§

impl BitAndAssign<i16> for FheInt16

source§

fn bitand_assign(&mut self, rhs: i16)

Performs the &= operation. Read more
source§

impl BitOr<i16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: i16) -> Self::Output

Performs the | operation. Read more
source§

impl BitOr<i16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: i16) -> Self::Output

Performs the | operation. Read more
source§

impl BitOrAssign<i16> for FheInt16

source§

fn bitor_assign(&mut self, rhs: i16)

Performs the |= operation. Read more
source§

impl BitXor<i16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: i16) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXor<i16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: i16) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXorAssign<i16> for FheInt16

source§

fn bitxor_assign(&mut self, rhs: i16)

Performs the ^= operation. Read more
source§

impl Div<i16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<i16> for FheInt16

source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
source§

impl DivRem<i16> for &FheInt16

source§

impl DivRem<i16> for FheInt16

source§

impl Mul<i16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<i16> for FheInt16

source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
source§

impl Rem<i16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i16) -> Self::Output

Performs the % operation. Read more
source§

impl Rem<i16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i16) -> Self::Output

Performs the % operation. Read more
source§

impl RemAssign<i16> for FheInt16

source§

fn rem_assign(&mut self, rhs: i16)

Performs the %= operation. Read more
source§

impl RotateLeft<u128> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u128) -> Self::Output

source§

impl RotateLeft<u128> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u128) -> Self::Output

source§

impl RotateLeft<u16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u16) -> Self::Output

source§

impl RotateLeft<u16> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u16) -> Self::Output

source§

impl RotateLeft<u32> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u32) -> Self::Output

source§

impl RotateLeft<u32> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u32) -> Self::Output

source§

impl RotateLeft<u64> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u64) -> Self::Output

source§

impl RotateLeft<u64> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u64) -> Self::Output

source§

impl RotateLeft<u8> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u8) -> Self::Output

source§

impl RotateLeft<u8> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_left(self, rhs: u8) -> Self::Output

source§

impl RotateLeftAssign<u128> for FheInt16

source§

fn rotate_left_assign(&mut self, rhs: u128)

source§

impl RotateLeftAssign<u16> for FheInt16

source§

fn rotate_left_assign(&mut self, rhs: u16)

source§

impl RotateLeftAssign<u32> for FheInt16

source§

fn rotate_left_assign(&mut self, rhs: u32)

source§

impl RotateLeftAssign<u64> for FheInt16

source§

fn rotate_left_assign(&mut self, rhs: u64)

source§

impl RotateLeftAssign<u8> for FheInt16

source§

fn rotate_left_assign(&mut self, rhs: u8)

source§

impl RotateRight<u128> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u128) -> Self::Output

source§

impl RotateRight<u128> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u128) -> Self::Output

source§

impl RotateRight<u16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u16) -> Self::Output

source§

impl RotateRight<u16> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u16) -> Self::Output

source§

impl RotateRight<u32> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u32) -> Self::Output

source§

impl RotateRight<u32> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u32) -> Self::Output

source§

impl RotateRight<u64> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u64) -> Self::Output

source§

impl RotateRight<u64> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u64) -> Self::Output

source§

impl RotateRight<u8> for &FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u8) -> Self::Output

source§

impl RotateRight<u8> for FheInt16

§

type Output = FheInt<FheInt16Id>

source§

fn rotate_right(self, rhs: u8) -> Self::Output

source§

impl RotateRightAssign<u128> for FheInt16

source§

fn rotate_right_assign(&mut self, rhs: u128)

source§

impl RotateRightAssign<u16> for FheInt16

source§

fn rotate_right_assign(&mut self, rhs: u16)

source§

impl RotateRightAssign<u32> for FheInt16

source§

fn rotate_right_assign(&mut self, rhs: u32)

source§

impl RotateRightAssign<u64> for FheInt16

source§

fn rotate_right_assign(&mut self, rhs: u64)

source§

impl RotateRightAssign<u8> for FheInt16

source§

fn rotate_right_assign(&mut self, rhs: u8)

source§

impl Shl<u128> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u128) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<u128> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u128) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<u16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u16) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<u16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u16) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<u32> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<u32> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<u64> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u64) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<u64> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u64) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<u8> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u8) -> Self::Output

Performs the << operation. Read more
source§

impl Shl<u8> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the << operator.
source§

fn shl(self, rhs: u8) -> Self::Output

Performs the << operation. Read more
source§

impl ShlAssign<u128> for FheInt16

source§

fn shl_assign(&mut self, rhs: u128)

Performs the <<= operation. Read more
source§

impl ShlAssign<u16> for FheInt16

source§

fn shl_assign(&mut self, rhs: u16)

Performs the <<= operation. Read more
source§

impl ShlAssign<u32> for FheInt16

source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
source§

impl ShlAssign<u64> for FheInt16

source§

fn shl_assign(&mut self, rhs: u64)

Performs the <<= operation. Read more
source§

impl ShlAssign<u8> for FheInt16

source§

fn shl_assign(&mut self, rhs: u8)

Performs the <<= operation. Read more
source§

impl Shr<u128> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u128) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<u128> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u128) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<u16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u16) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<u16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u16) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<u32> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<u32> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<u64> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u64) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<u64> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u64) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<u8> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u8) -> Self::Output

Performs the >> operation. Read more
source§

impl Shr<u8> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: u8) -> Self::Output

Performs the >> operation. Read more
source§

impl ShrAssign<u128> for FheInt16

source§

fn shr_assign(&mut self, rhs: u128)

Performs the >>= operation. Read more
source§

impl ShrAssign<u16> for FheInt16

source§

fn shr_assign(&mut self, rhs: u16)

Performs the >>= operation. Read more
source§

impl ShrAssign<u32> for FheInt16

source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
source§

impl ShrAssign<u64> for FheInt16

source§

fn shr_assign(&mut self, rhs: u64)

Performs the >>= operation. Read more
source§

impl ShrAssign<u8> for FheInt16

source§

fn shr_assign(&mut self, rhs: u8)

Performs the >>= operation. Read more
source§

impl Sub<i16> for &FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i16> for FheInt16

§

type Output = FheInt<FheInt16Id>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<i16> for FheInt16

source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more