pub struct IsInHaystack { /* private fields */ }Available on crate feature
polars-ops only.Expand description
A single haystack prepared for probing with needles of a fixed dtype.
Implementations§
Source§impl IsInHaystack
impl IsInHaystack
Sourcepub fn new(
haystack: &Series,
needle_dtype: &DataType,
) -> Result<IsInHaystack, PolarsError>
pub fn new( haystack: &Series, needle_dtype: &DataType, ) -> Result<IsInHaystack, PolarsError>
haystack must be a List or Array series of length 1.
pub fn probe( &self, needle: &Series, nulls_equal: bool, ) -> Result<ChunkedArray<BooleanType>, PolarsError>
Auto Trait Implementations§
impl !Freeze for IsInHaystack
impl !RefUnwindSafe for IsInHaystack
impl !UnwindSafe for IsInHaystack
impl Send for IsInHaystack
impl Sync for IsInHaystack
impl Unpin for IsInHaystack
impl UnsafeUnpin for IsInHaystack
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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