Trait polars_core::chunked_array::ops::IntoTakeRandom
source · pub trait IntoTakeRandom<'a> {
type Item;
type TakeRandom;
fn take_rand(&self) -> Self::TakeRandom;
}
Expand description
Create a type that implements a faster TakeRandom
.
Required Associated Types§
type Item
type TakeRandom
Required Methods§
sourcefn take_rand(&self) -> Self::TakeRandom
fn take_rand(&self) -> Self::TakeRandom
Create a type that implements TakeRandom
.
Implementors§
source§impl<'a> IntoTakeRandom<'a> for &'a BinaryChunked
Available on crate feature dtype-binary
only.
impl<'a> IntoTakeRandom<'a> for &'a BinaryChunked
Available on crate feature
dtype-binary
only.type Item = &'a [u8]
type TakeRandom = TakeRandBranch2<BinaryTakeRandomSingleChunk<'a>, BinaryTakeRandom<'a>>
source§impl<'a> IntoTakeRandom<'a> for &'a BooleanChunked
impl<'a> IntoTakeRandom<'a> for &'a BooleanChunked
type Item = bool
type TakeRandom = TakeRandBranch2<BoolTakeRandomSingleChunk<'a>, BoolTakeRandom<'a>>
source§impl<'a> IntoTakeRandom<'a> for &'a ListChunked
impl<'a> IntoTakeRandom<'a> for &'a ListChunked
type Item = Series
type TakeRandom = TakeRandBranch2<ListTakeRandomSingleChunk<'a>, ListTakeRandom<'a>>
source§impl<'a> IntoTakeRandom<'a> for &'a Utf8Chunked
impl<'a> IntoTakeRandom<'a> for &'a Utf8Chunked
type Item = &'a str
type TakeRandom = TakeRandBranch2<Utf8TakeRandomSingleChunk<'a>, Utf8TakeRandom<'a>>
source§impl<'a, T> IntoTakeRandom<'a> for &'a ChunkedArray<T>where
T: PolarsNumericType,
impl<'a, T> IntoTakeRandom<'a> for &'a ChunkedArray<T>where
T: PolarsNumericType,
type Item = <T as PolarsNumericType>::Native
type TakeRandom = TakeRandBranch3<NumTakeRandomCont<'a, <T as PolarsNumericType>::Native>, NumTakeRandomSingleChunk<'a, <T as PolarsNumericType>::Native>, NumTakeRandomChunked<'a, <T as PolarsNumericType>::Native>>
source§impl<'a, T: PolarsObject> IntoTakeRandom<'a> for &'a ObjectChunked<T>
Available on crate feature object
only.
impl<'a, T: PolarsObject> IntoTakeRandom<'a> for &'a ObjectChunked<T>
Available on crate feature
object
only.