pub struct CompactCiphertextListBuilder { /* private fields */ }Implementations§
Source§impl CompactCiphertextListBuilder
impl CompactCiphertextListBuilder
pub fn new(pk: &CompactPublicKey) -> Self
Available on crate feature
integer only.pub fn push<T>(&mut self, value: T) -> &mut Selfwhere
T: HlCompactable,
Available on crate feature
integer only.pub fn extend<T>(&mut self, values: impl Iterator<Item = T>) -> &mut Selfwhere
T: HlCompactable,
Available on crate feature
integer only.pub fn push_with_num_bits<T>(
&mut self,
number: T,
num_bits: usize,
) -> Result<&mut Self>where
T: HlCompactable + Numeric,
Available on crate feature
integer only.pub fn extend_with_num_bits<T>(
&mut self,
values: impl Iterator<Item = T>,
num_bits: usize,
) -> Result<&mut Self>where
T: HlCompactable + Numeric,
Available on crate feature
integer only.pub fn build(&self) -> CompactCiphertextList
Available on crate feature
integer only.pub fn build_packed(&self) -> CompactCiphertextList
Available on crate feature
integer only.pub fn build_with_proof_packed( &self, crs: &CompactPkeCrs, metadata: &[u8], compute_load: ZkComputeLoad, ) -> Result<ProvenCompactCiphertextList>
Available on crate features
integer and zk-pok only.Source§impl CompactCiphertextListBuilder
impl CompactCiphertextListBuilder
pub fn push_string(&mut self, string: &ClearString) -> &mut Self
Available on crate features
integer and strings only.pub fn push_string_with_padding( &mut self, clear_string: &ClearString, padding_count: u32, ) -> &mut Self
Available on crate features
integer and strings only.pub fn push_string_with_fixed_size( &mut self, clear_string: &ClearString, size: u32, ) -> &mut Self
Available on crate features
integer and strings only.Auto Trait Implementations§
impl Freeze for CompactCiphertextListBuilder
impl RefUnwindSafe for CompactCiphertextListBuilder
impl Send for CompactCiphertextListBuilder
impl Sync for CompactCiphertextListBuilder
impl Unpin for CompactCiphertextListBuilder
impl UnwindSafe for CompactCiphertextListBuilder
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> 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