pub struct Set<'a, S: Debug, D: DieOnce<S> + 'a> {
pub name: &'a str,
pub elem_die: D,
/* private fields */
}
Expand description
A mathematical set that can be used to randomly choose Vars
.
The elements of the set are represented by the generator. The set contains all elements that the generator could possibly generate.
Fields§
§name: &'a str
The name of the set.
elem_die: D
A generator for the elements of the set.
Implementations§
Auto Trait Implementations§
impl<'a, S, D> Freeze for Set<'a, S, D>where
D: Freeze,
impl<'a, S, D> RefUnwindSafe for Set<'a, S, D>where
D: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S, D> Send for Set<'a, S, D>
impl<'a, S, D> Sync for Set<'a, S, D>
impl<'a, S, D> Unpin for Set<'a, S, D>
impl<'a, S, D> UnwindSafe for Set<'a, S, D>where
D: UnwindSafe,
S: UnwindSafe,
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