Struct elastic_elgamal::app::SingleChoice
source · pub struct SingleChoice(/* private fields */);
Expand description
Single-choice setup for EncryptedChoice
, in which it can contain a single selected option.
§Examples
See EncryptedChoice
docs for an example of usage.
Trait Implementations§
source§impl Clone for SingleChoice
impl Clone for SingleChoice
source§fn clone(&self) -> SingleChoice
fn clone(&self) -> SingleChoice
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 SingleChoice
impl Debug for SingleChoice
source§impl<G: Group> ProveSum<G> for SingleChoice
impl<G: Group> ProveSum<G> for SingleChoice
§type Proof = LogEqualityProof<G>
type Proof = LogEqualityProof<G>
Produced / verified proofs.
impl Copy for SingleChoice
Auto Trait Implementations§
impl Freeze for SingleChoice
impl RefUnwindSafe for SingleChoice
impl Send for SingleChoice
impl Sync for SingleChoice
impl Unpin for SingleChoice
impl UnwindSafe for SingleChoice
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