pub enum IndexKind {
Range(usize),
Int64(Vec<i64>),
Datetime(Vec<i64>, Tz),
Str(Vec<String>),
}Expand description
The label storage backing an Index.
Defaults to an implicit 0..n range; a Datetime kind is the common OHLCV
case (i64 nanoseconds since the Unix epoch); a Str kind (pandas
object/string index) supports symbol-keyed lookup.
Variants§
Range(usize)
Implicit 0..n integer labels.
Int64(Vec<i64>)
Explicit integer labels.
Datetime(Vec<i64>, Tz)
Datetime labels as i64 nanoseconds since the Unix epoch, with a display / matching timezone (UTC by default).
Str(Vec<String>)
String labels (pandas object/string index).
Trait Implementations§
impl StructuralPartialEq for IndexKind
Auto Trait Implementations§
impl Freeze for IndexKind
impl RefUnwindSafe for IndexKind
impl Send for IndexKind
impl Sync for IndexKind
impl Unpin for IndexKind
impl UnsafeUnpin for IndexKind
impl UnwindSafe for IndexKind
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