[go: up one dir, main page]

Module time

Source
Expand description

Contains all time related structures used in fundu like TimeUnit and Duration

Structs§

Duration
The duration which is returned by the parser
Multiplier
The multiplier of a TimeUnit.

Enums§

TimeUnit
The time units used to define possible time units in the input string

Constants§

DEFAULT_ID_DAY
The default identifier of TimeUnit::Day
DEFAULT_ID_HOUR
The default identifier of TimeUnit::Hour
DEFAULT_ID_MICRO_SECOND
The default identifier of TimeUnit::MicroSecond
DEFAULT_ID_MILLI_SECOND
The default identifier of TimeUnit::MicroSecond
DEFAULT_ID_MINUTE
The default identifier of TimeUnit::Minute
DEFAULT_ID_MONTH
The default identifier of TimeUnit::Month
DEFAULT_ID_NANO_SECOND
The default identifier of TimeUnit::NanoSecond
DEFAULT_ID_SECOND
The default identifier of TimeUnit::Second
DEFAULT_ID_WEEK
The default identifier of TimeUnit::Week
DEFAULT_ID_YEAR
The default identifier of TimeUnit::Year

Traits§

SaturatingInto
Conversion which saturates at the maximum or maximum instead of overflowing
TimeUnitsLike
To be able to use the basic crate::parse::Parser this trait needs to be implemented