Struct tfhe::integer::public_key::compact::CompressedCompactPublicKey
source · pub struct CompressedCompactPublicKey { /* private fields */ }
Available on crate feature
integer
only.Implementations§
source§impl CompressedCompactPublicKey
impl CompressedCompactPublicKey
pub fn new(client_key: &ClientKey) -> Self
sourcepub fn into_raw_parts(self) -> ShortintCompressedCompactPublicKey
pub fn into_raw_parts(self) -> ShortintCompressedCompactPublicKey
Deconstruct a CompressedCompactPublicKey
into its constituents.
sourcepub fn from_raw_parts(key: ShortintCompressedCompactPublicKey) -> Self
pub fn from_raw_parts(key: ShortintCompressedCompactPublicKey) -> Self
Construct a CompressedCompactPublicKey
from its constituents.
pub fn decompress(&self) -> CompactPublicKey
Trait Implementations§
source§impl Clone for CompressedCompactPublicKey
impl Clone for CompressedCompactPublicKey
source§fn clone(&self) -> CompressedCompactPublicKey
fn clone(&self) -> CompressedCompactPublicKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompressedCompactPublicKey
impl Debug for CompressedCompactPublicKey
source§impl<'de> Deserialize<'de> for CompressedCompactPublicKey
impl<'de> Deserialize<'de> for CompressedCompactPublicKey
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 PartialEq for CompressedCompactPublicKey
impl PartialEq for CompressedCompactPublicKey
source§fn eq(&self, other: &CompressedCompactPublicKey) -> bool
fn eq(&self, other: &CompressedCompactPublicKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CompressedCompactPublicKey
Auto Trait Implementations§
impl Freeze for CompressedCompactPublicKey
impl RefUnwindSafe for CompressedCompactPublicKey
impl Send for CompressedCompactPublicKey
impl Sync for CompressedCompactPublicKey
impl Unpin for CompressedCompactPublicKey
impl UnwindSafe for CompressedCompactPublicKey
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