pub struct ArbitraryChunk<N, V> {
pub chunk_len: Range<usize>,
pub array_count: Range<usize>,
pub data_type: DataTypeSampler,
pub array: ArbitraryArray<N, V>,
}
Fields§
§chunk_len: Range<usize>
§array_count: Range<usize>
§data_type: DataTypeSampler
§array: ArbitraryArray<N, V>
Implementations§
Source§impl<N, V> ArbitraryChunk<N, V>
impl<N, V> ArbitraryChunk<N, V>
pub fn sample_one(self) -> ChunkSampler
pub fn sample_many(self, chunk_count: Range<usize>) -> MultiChunkSampler
pub fn from_seed( array: &ArbitraryArray<N, V>, seed: (Vec<DataType>, usize), ) -> Box<dyn Sample<Output = Chunk<Box<dyn Array>>> + Send + Sync>
Auto Trait Implementations§
impl<N, V> Freeze for ArbitraryChunk<N, V>
impl<N, V> !RefUnwindSafe for ArbitraryChunk<N, V>
impl<N, V> Send for ArbitraryChunk<N, V>
impl<N, V> Sync for ArbitraryChunk<N, V>
impl<N, V> Unpin for ArbitraryChunk<N, V>
impl<N, V> !UnwindSafe for ArbitraryChunk<N, V>
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> 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