pub struct CountableChoiceWitness {
pub choices: Vec<u64>,
}Expand description
A concrete witness for countable choice: given a sequence of non-empty sets (represented by a function that picks a canonical element), builds the choice function.
Fields§
§choices: Vec<u64>The chosen elements: choices[n] is the chosen element from the n-th set.
Implementations§
Source§impl CountableChoiceWitness
impl CountableChoiceWitness
Sourcepub fn build(sel: impl Fn(usize) -> u64, count: usize) -> Self
pub fn build(sel: impl Fn(usize) -> u64, count: usize) -> Self
Build a countable choice witness from a selection function sel(n) -> element.
Trait Implementations§
Source§impl Clone for CountableChoiceWitness
impl Clone for CountableChoiceWitness
Source§fn clone(&self) -> CountableChoiceWitness
fn clone(&self) -> CountableChoiceWitness
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CountableChoiceWitness
impl RefUnwindSafe for CountableChoiceWitness
impl Send for CountableChoiceWitness
impl Sync for CountableChoiceWitness
impl Unpin for CountableChoiceWitness
impl UnsafeUnpin for CountableChoiceWitness
impl UnwindSafe for CountableChoiceWitness
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