Struct Weighted

#[must_use = "strategies do nothing unless used"]
pub struct Weighted(/* private field */);

The return type from weighted().

Trait Implementations

impl Clone for Weighted

fn clone(&self) -> Weighted

impl Copy for Weighted

impl Debug for Weighted

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Strategy for Weighted

type Tree = BoolValueTree;
type Value = bool;
fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>

Auto Trait Implementations

impl Freeze for Weighted

impl RefUnwindSafe for Weighted

impl Send for Weighted

impl Sync for Weighted

impl Unpin for Weighted

impl UnsafeUnpin for Weighted

impl UnwindSafe for Weighted

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Weighted where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Weighted where ST: ?Sized, DT: ?Sized,

impl<T> Any for Weighted where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Weighted where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Weighted where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for Weighted where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Weighted

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for Weighted where T: ?Sized,

impl<T> ToOwned for Weighted where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for Weighted where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Weighted where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Weighted where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip<V> for Weighted where V: MultiLane<T>,

fn vzip(self) -> V