pub struct NoNull<T> { /* private fields */ }
Expand description
Just a wrapper structure which is 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<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