Skip to main content

Module adapter

Module adapter 

Source
Expand description

The seam between the date components and whoever owns the calendar.

This crate has no calendar system, no time zone, no locale, and no notion of what day it is. Every one of those facts arrives through DateAdapter, which the host implements over whatever date library it already depends on. A Day is an opaque token: the components carry it, compare it, and hand it back, and only the adapter that produced it knows what it means.

Structs§

Clock
The clock the host keeps: how far its hours run, and what it calls the two halves of a twelve-hour day.
Day
One day, meaningful only to the adapter that produced it.
MonthGrid
A month laid out in weeks.
MonthKey
One month, meaningful only to the adapter that produced it.
TimeOfDay
A time of day, in the host’s own clock.

Enums§

MonthCell
One slot in a month grid.
Selectability
Whether a day may be picked, and if not, why not.

Traits§

DateAdapter
Everything the date components are not allowed to know.

Type Aliases§

SharedDateAdapter
The adapter as the components hold it.