Struct two_timer::Config

source ·
pub struct Config { /* private fields */ }
Expand description

A collection of parameters that can influence the interpretation of time expressions.

Implementations

Constructs an expression with the default parameters.

Returns a copy of the configuration parameters with the “now” moment set to the parameter supplied.

Returns a copy of the configuration parameters with whether Monday is regarded as the first day of the week set to the parameter supplied. By default Monday is regarded as the first day. If this parameter is set to false, Sunday will be regarded as the first weekday.

Returns a copy of the configuration parameters with the pay period length in days set to the parameter supplied. The default pay period length is 7 days.

Returns a copy of the configuration parameters with the reference start date for a pay period set to the parameter supplied. By default this date is undefined. Unless it is defined, expressions containing the phrase “pay period” or “pp” cannot be interpreted.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.