pub enum ResampleClosed {
Left,
Right,
}Expand description
Shared resample grouping used by Series and DataFrame resample paths.
For calendar frequencies ("M", "Q", "Y"/"A" with optional
multipliers) this labels buckets by their right edge ("YYYY-MM-DD"),
matching pandas month-end, quarter-end, and year-end resample labels. For N-day multiples
("2D", "3D", …) it produces origin-anchored bins labelled by the bin
start date, matching pandas.resample("2D") (anchored at the first
timestamp, label = left edge).
Per gauntlet bead 2.5, also supports:
- Sub-day units: H, min, s, ms, us, ns with multipliers (nanosecond bucketing)
Variants§
Trait Implementations§
Source§impl Clone for ResampleClosed
impl Clone for ResampleClosed
impl Copy for ResampleClosed
Source§impl Debug for ResampleClosed
impl Debug for ResampleClosed
impl Eq for ResampleClosed
Source§impl PartialEq for ResampleClosed
impl PartialEq for ResampleClosed
impl StructuralPartialEq for ResampleClosed
Auto Trait Implementations§
impl Forget for ResampleClosed
impl Freeze for ResampleClosed
impl Move for ResampleClosed
impl RefUnwindSafe for ResampleClosed
impl Send for ResampleClosed
impl Sync for ResampleClosed
impl Unpin for ResampleClosed
impl UnsafeUnpin for ResampleClosed
impl UnwindSafe for ResampleClosed
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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