[][src]Struct dicetest::die::Limit

pub struct Limit(pub u64);

Recommendation for the upper size limit of dynamic data structures generated with DieOnce and Die.

The generator implementation is allowed to freely interpret this value, but the complexity of the value generation should be in O(limit).

This parameter exists because the hardware of the testing machine is limited. For example a very big list could not fit in the memory or its generation could take too much time.

Methods

impl Limit
[src]

pub fn saturating_to_usize(self) -> usize
[src]

Returns the limit as usize. If the limit is greater than the largest usize value, the function returns the largest usize value.

Trait Implementations

impl From<u64> for Limit
[src]

impl Eq for Limit
[src]

impl PartialOrd<Limit> for Limit
[src]

impl Copy for Limit
[src]

impl Default for Limit
[src]

impl PartialEq<Limit> for Limit
[src]

impl Clone for Limit
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for Limit
[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Debug for Limit
[src]

impl Hash for Limit
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Limit

impl Sync for Limit

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]