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