Enum polars::chunked_array::ops::TakeRandBranch3
source · pub enum TakeRandBranch3<N, S, M> {
SingleNoNull(N),
Single(S),
Multi(M),
}Variants§
Trait Implementations§
source§impl<N, S, M, I> TakeRandom for TakeRandBranch3<N, S, M>where
N: TakeRandom<Item = I>,
S: TakeRandom<Item = I>,
M: TakeRandom<Item = I>,
impl<N, S, M, I> TakeRandom for TakeRandBranch3<N, S, M>where N: TakeRandom<Item = I>, S: TakeRandom<Item = I>, M: TakeRandom<Item = I>,
type Item = I
source§fn get(
&self,
index: usize
) -> Option<<TakeRandBranch3<N, S, M> as TakeRandom>::Item>
fn get( &self, index: usize ) -> Option<<TakeRandBranch3<N, S, M> as TakeRandom>::Item>
Get a nullable value by index. Read more
source§unsafe fn get_unchecked(
&self,
index: usize
) -> Option<<TakeRandBranch3<N, S, M> as TakeRandom>::Item>
unsafe fn get_unchecked( &self, index: usize ) -> Option<<TakeRandBranch3<N, S, M> as TakeRandom>::Item>
Get a value by index and ignore the null bit. Read more
source§fn last(&self) -> Option<<TakeRandBranch3<N, S, M> as TakeRandom>::Item>
fn last(&self) -> Option<<TakeRandBranch3<N, S, M> as TakeRandom>::Item>
This is much faster if we have many chunks as we don’t have to compute the index Read more
Auto Trait Implementations§
impl<N, S, M> RefUnwindSafe for TakeRandBranch3<N, S, M>where M: RefUnwindSafe, N: RefUnwindSafe, S: RefUnwindSafe,
impl<N, S, M> Send for TakeRandBranch3<N, S, M>where M: Send, N: Send, S: Send,
impl<N, S, M> Sync for TakeRandBranch3<N, S, M>where M: Sync, N: Sync, S: Sync,
impl<N, S, M> Unpin for TakeRandBranch3<N, S, M>where M: Unpin, N: Unpin, S: Unpin,
impl<N, S, M> UnwindSafe for TakeRandBranch3<N, S, M>where M: UnwindSafe, N: UnwindSafe, S: UnwindSafe,
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