Struct polars::prelude::AsOfOptions
source · pub struct AsOfOptions {
pub strategy: AsofStrategy,
pub tolerance: Option<AnyValue<'static>>,
pub tolerance_str: Option<SmartString<LazyCompact>>,
pub left_by: Option<Vec<SmartString<LazyCompact>>>,
pub right_by: Option<Vec<SmartString<LazyCompact>>>,
}
Available on crate feature
polars-ops
only.Fields§
§strategy: AsofStrategy
§tolerance: Option<AnyValue<'static>>
A tolerance in the same unit as the asof column
tolerance_str: Option<SmartString<LazyCompact>>
A time duration specified as a string, for example:
- “5m”
- “2h15m”
- “1d6h”
left_by: Option<Vec<SmartString<LazyCompact>>>
§right_by: Option<Vec<SmartString<LazyCompact>>>
Trait Implementations§
source§impl Clone for AsOfOptions
impl Clone for AsOfOptions
source§fn clone(&self) -> AsOfOptions
fn clone(&self) -> AsOfOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AsOfOptions
impl Debug for AsOfOptions
source§impl Default for AsOfOptions
impl Default for AsOfOptions
source§fn default() -> AsOfOptions
fn default() -> AsOfOptions
Returns the “default value” for a type. Read more
source§impl Hash for AsOfOptions
impl Hash for AsOfOptions
source§impl PartialEq for AsOfOptions
impl PartialEq for AsOfOptions
source§fn eq(&self, other: &AsOfOptions) -> bool
fn eq(&self, other: &AsOfOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AsOfOptions
impl StructuralPartialEq for AsOfOptions
Auto Trait Implementations§
impl Freeze for AsOfOptions
impl !RefUnwindSafe for AsOfOptions
impl Send for AsOfOptions
impl Sync for AsOfOptions
impl Unpin for AsOfOptions
impl !UnwindSafe for AsOfOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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