Struct polars_core::utils::NoNull
source · pub struct NoNull<T> { /* private fields */ }
Expand description
Just a wrapper structure. Useful for certain impl specializations
This is for instance use to implement
impl<T> FromIterator<T::Native> for NoNull<ChunkedArray<T>>
as Option<T::Native>
was already implemented:
impl<T> FromIterator<Option<T::Native>> for ChunkedArray<T>
Implementations§
Trait Implementations§
source§impl<T> FromIterator<<T as PolarsNumericType>::Native> for NoNull<ChunkedArray<T>>where
T: PolarsNumericType,
impl<T> FromIterator<<T as PolarsNumericType>::Native> for NoNull<ChunkedArray<T>>where
T: PolarsNumericType,
source§impl FromIterator<bool> for NoNull<BooleanChunked>
impl FromIterator<bool> for NoNull<BooleanChunked>
source§impl<T> FromIteratorReversed<<T as PolarsNumericType>::Native> for NoNull<ChunkedArray<T>>where
T: PolarsNumericType,
impl<T> FromIteratorReversed<<T as PolarsNumericType>::Native> for NoNull<ChunkedArray<T>>where
T: PolarsNumericType,
fn from_trusted_len_iter_rev<I: TrustedLen<Item = T::Native>>(iter: I) -> Self
source§impl FromIteratorReversed<bool> for NoNull<BooleanChunked>
impl FromIteratorReversed<bool> for NoNull<BooleanChunked>
fn from_trusted_len_iter_rev<I: TrustedLen<Item = bool>>(iter: I) -> Self
source§impl<T> FromParallelIterator<<T as PolarsNumericType>::Native> for NoNull<ChunkedArray<T>>where
T: PolarsNumericType,
impl<T> FromParallelIterator<<T as PolarsNumericType>::Native> for NoNull<ChunkedArray<T>>where
T: PolarsNumericType,
source§fn from_par_iter<I: IntoParallelIterator<Item = T::Native>>(iter: I) -> Self
fn from_par_iter<I: IntoParallelIterator<Item = T::Native>>(iter: I) -> Self
Creates an instance of the collection from the parallel iterator
par_iter
. Read moresource§impl<T> FromTrustedLenIterator<<T as PolarsNumericType>::Native> for NoNull<ChunkedArray<T>>where
T: PolarsNumericType,
impl<T> FromTrustedLenIterator<<T as PolarsNumericType>::Native> for NoNull<ChunkedArray<T>>where
T: PolarsNumericType,
fn from_iter_trusted_length<I: IntoIterator<Item = T::Native>>(iter: I) -> Selfwhere
I::IntoIter: TrustedLen,
source§impl FromTrustedLenIterator<bool> for NoNull<BooleanChunked>
impl FromTrustedLenIterator<bool> for NoNull<BooleanChunked>
fn from_iter_trusted_length<I: IntoIterator<Item = bool>>(iter: I) -> Self
Auto Trait Implementations§
impl<T> Freeze for NoNull<T>where
T: Freeze,
impl<T> RefUnwindSafe for NoNull<T>where
T: RefUnwindSafe,
impl<T> Send for NoNull<T>where
T: Send,
impl<T> Sync for NoNull<T>where
T: Sync,
impl<T> Unpin for NoNull<T>where
T: Unpin,
impl<T> UnwindSafe for NoNull<T>where
T: 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
source§impl<A, T, E> FromFallibleIterator<A, E> for Twhere
T: FromIterator<A>,
E: Error,
impl<A, T, E> FromFallibleIterator<A, E> for Twhere
T: FromIterator<A>,
E: Error,
fn from_fallible_iter<F>(iter: F) -> Result<T, E>where
F: FallibleIterator<E, Item = A>,
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