Module b

Module b 

Source
Expand description

A module for constants and various base utilities.

This module is a work-in-progress that may lead to helping us move off of ranged integers. Iโ€™m not quite sure where this will go.

Modulesยง

checkc ๐Ÿ”’

Macrosยง

define_bounds ๐Ÿ”’
This macro writes out the boiler plate to define a boundary type.
impl_primitive ๐Ÿ”’

Structsยง

Century ๐Ÿ”’
CivilDayNanosecond ๐Ÿ”’
CivilDaySecond ๐Ÿ”’
Day ๐Ÿ”’
DayOfYear ๐Ÿ”’
Hour ๐Ÿ”’
Hour12 ๐Ÿ”’
ISOWeek ๐Ÿ”’
ISOYear ๐Ÿ”’
Increment ๐Ÿ”’
Increment32 ๐Ÿ”’
LeapSecond ๐Ÿ”’
Microsecond ๐Ÿ”’
Millisecond ๐Ÿ”’
Minute ๐Ÿ”’
Month ๐Ÿ”’
Nanosecond ๐Ÿ”’
NthWeekday ๐Ÿ”’
OffsetHours ๐Ÿ”’
OffsetMinutes ๐Ÿ”’
OffsetSeconds ๐Ÿ”’
OffsetTotalSeconds ๐Ÿ”’
RawBoundsError ๐Ÿ”’
Second ๐Ÿ”’
SignedDurationSeconds ๐Ÿ”’
SignedSubsecNanosecond ๐Ÿ”’
SpanDays ๐Ÿ”’
SpanHours ๐Ÿ”’
SpanMicroseconds ๐Ÿ”’
SpanMilliseconds ๐Ÿ”’
SpanMinutes ๐Ÿ”’
SpanMonths ๐Ÿ”’
SpanMultiple ๐Ÿ”’
SpanNanoseconds ๐Ÿ”’
SpanSeconds ๐Ÿ”’
SpanWeeks ๐Ÿ”’
SpanYears ๐Ÿ”’
SubsecNanosecond ๐Ÿ”’
UnixEpochDays ๐Ÿ”’
UnixMicroseconds ๐Ÿ”’
UnixMilliseconds ๐Ÿ”’
UnixSeconds ๐Ÿ”’
WeekNum ๐Ÿ”’
WeekdayMondayOne ๐Ÿ”’
WeekdayMondayZero ๐Ÿ”’
WeekdaySundayOne ๐Ÿ”’
WeekdaySundayZero ๐Ÿ”’
Year ๐Ÿ”’
YearBCE ๐Ÿ”’
YearCE ๐Ÿ”’
YearTwoDigit ๐Ÿ”’
ZonedDayNanoseconds ๐Ÿ”’
ZonedDaySeconds ๐Ÿ”’

Enumsยง

BoundsError ๐Ÿ”’
An error that indicates a value is out of its intended range.
Sign ๐Ÿ”’
A representation of a numeric sign.
SpecialBoundsError ๐Ÿ”’
Like BoundsError, but maintained manually.

Constantsยง

DAYS_PER_WEEK ๐Ÿ”’
DAYS_PER_WEEK_32 ๐Ÿ”’
HOURS_PER_CIVIL_DAY ๐Ÿ”’
HOURS_PER_CIVIL_DAY_32 ๐Ÿ”’
MICROS_PER_CIVIL_DAY ๐Ÿ”’
MICROS_PER_MILLI ๐Ÿ”’
MICROS_PER_MILLI_32 ๐Ÿ”’
MICROS_PER_SEC ๐Ÿ”’
MICROS_PER_SEC_32 ๐Ÿ”’
MILLIS_PER_CIVIL_DAY ๐Ÿ”’
MILLIS_PER_SEC ๐Ÿ”’
MILLIS_PER_SEC_32 ๐Ÿ”’
MINS_PER_CIVIL_DAY ๐Ÿ”’
MINS_PER_HOUR ๐Ÿ”’
MINS_PER_HOUR_32 ๐Ÿ”’
NANOS_PER_CIVIL_DAY ๐Ÿ”’
NANOS_PER_HOUR ๐Ÿ”’
NANOS_PER_MICRO ๐Ÿ”’
NANOS_PER_MICRO_32 ๐Ÿ”’
NANOS_PER_MILLI ๐Ÿ”’
NANOS_PER_MILLI_32 ๐Ÿ”’
NANOS_PER_MIN ๐Ÿ”’
NANOS_PER_SEC ๐Ÿ”’
NANOS_PER_SEC_32 ๐Ÿ”’
NANOS_PER_WEEK ๐Ÿ”’
SECS_PER_CIVIL_DAY ๐Ÿ”’
SECS_PER_CIVIL_DAY_32 ๐Ÿ”’
SECS_PER_HOUR ๐Ÿ”’
SECS_PER_HOUR_32 ๐Ÿ”’
SECS_PER_MIN ๐Ÿ”’
SECS_PER_MIN_32 ๐Ÿ”’
SECS_PER_WEEK ๐Ÿ”’

Traitsยง

Bounds ๐Ÿ”’
An interface for defining boundaries on integer values.
Primitive ๐Ÿ”’
A simple trait for making int as int usable in a generic context.

Functionsยง

next_multiple_of ๐Ÿ”’
Computes the next multiple of rhs that is greater than or equal to lhs.