pub enum Distribution {
Shuffled,
NearlySorted,
Reversed,
FewUnique,
Sorted,
WithDuplicates,
}
Expand description
Data distribution patterns for generated arrays
Variants§
Shuffled
Random shuffled array
NearlySorted
Nearly sorted array with few out-of-place elements
Reversed
Reverse sorted array
FewUnique
Array with few unique values
Sorted
Already sorted array (best case)
WithDuplicates
Array with duplicates
Trait Implementations§
Source§impl Clone for Distribution
impl Clone for Distribution
Source§fn clone(&self) -> Distribution
fn clone(&self) -> Distribution
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 moreSource§impl Debug for Distribution
impl Debug for Distribution
Source§impl Default for Distribution
impl Default for Distribution
Source§fn default() -> Distribution
fn default() -> Distribution
Returns the “default value” for a type. Read more
Source§impl From<Distribution> for DistributionType
impl From<Distribution> for DistributionType
Source§fn from(distribution: Distribution) -> Self
fn from(distribution: Distribution) -> Self
Converts to this type from the input type.
Source§impl From<DistributionType> for Distribution
impl From<DistributionType> for Distribution
Source§fn from(dist_type: DistributionType) -> Self
fn from(dist_type: DistributionType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Distribution
impl PartialEq for Distribution
impl StructuralPartialEq for Distribution
Auto Trait Implementations§
impl Freeze for Distribution
impl RefUnwindSafe for Distribution
impl Send for Distribution
impl Sync for Distribution
impl Unpin for Distribution
impl UnwindSafe for Distribution
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more