Module bonsaidb::core::key::time::limited

source ·
Expand description

Types for storing limited-precision Durations.

Structs

Enums

  • A TimeResolution implementation that truncates time measurements to days. Internally, the number of days is represented as an i32, allowing a range of +/- ~5.88 million years.
  • A TimeResolution implementation that truncates time measurements to hours. Internally, the number of hours is represented as an i32, allowing a range of +/- ~245,147 years.
  • A TimeResolution implementation that truncates time measurements to microseconds. Internally, the number of microseconds is represented as an i64, allowing a range of +/- ~292,471 years.
  • A TimeResolution implementation that truncates time measurements to milliseconds. Internally, the number of milliseconds is represented as an i64, allowing a range of +/- ~292.5 million years.
  • A TimeResolution implementation that truncates time measurements to minutes. Internally, the number of minutes is represented as an i32, allowing a range of +/- ~4,086 years.
  • A TimeResolution implementation that preserves nanosecond resolution. Internally, the number of microseconds is represented as an i64, allowing a range of +/- ~292.5 years.
  • A TimeResolution implementation that truncates time measurements to seconds. Internally, the number of seconds is represented as an i64, allowing a range of +/- ~21 times the age of the universe.
  • A Duration that can be either negative or positive.
  • A TimeResolution implementation that truncates time measurements to weeks. Internally, the number of weeks is represented as an i32, allowing a range of +/- ~41.18 million years.

Traits