Trait numpy::datetime::Unit

source ·
pub trait Unit: Send + Sync + Clone + Copy + PartialEq + Eq + Hash + PartialOrd + Ord {
    const UNIT: NPY_DATETIMEUNIT;
    const ABBREV: &'static str;
}
Expand description

Represents the datetime units supported by NumPy

Required Associated Constants§

source

const UNIT: NPY_DATETIMEUNIT

The matching NumPy datetime unit code

source

const ABBREV: &'static str

The abbrevation used for debug formatting

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Unit for Attoseconds

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_as

source§

const ABBREV: &'static str = "as"

source§

impl Unit for Days

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_D

source§

const ABBREV: &'static str = "d"

source§

impl Unit for Femtoseconds

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_fs

source§

const ABBREV: &'static str = "fs"

source§

impl Unit for Hours

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_h

source§

const ABBREV: &'static str = "h"

source§

impl Unit for Microseconds

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_us

source§

const ABBREV: &'static str = "µs"

source§

impl Unit for Milliseconds

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ms

source§

const ABBREV: &'static str = "ms"

source§

impl Unit for Minutes

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_m

source§

const ABBREV: &'static str = "min"

source§

impl Unit for Months

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_M

source§

const ABBREV: &'static str = "mo"

source§

impl Unit for Nanoseconds

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ns

source§

const ABBREV: &'static str = "ns"

source§

impl Unit for Picoseconds

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_ps

source§

const ABBREV: &'static str = "ps"

source§

impl Unit for Seconds

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_s

source§

const ABBREV: &'static str = "s"

source§

impl Unit for Weeks

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_W

source§

const ABBREV: &'static str = "w"

source§

impl Unit for Years

source§

const UNIT: NPY_DATETIMEUNIT = NPY_DATETIMEUNIT::NPY_FR_Y

source§

const ABBREV: &'static str = "a"