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
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)