Struct IntervalParseConfig
pub struct IntervalParseConfig {
default_unit: IntervalUnit,
allow_fractional_calendar_units: bool,
}Expand description
Config to parse interval strings
Stores the default_unit to use if the string doesn’t have one specified,
and whether fractional calendar units may be spilled into smaller units.
Fields§
§default_unit: IntervalUnit§allow_fractional_calendar_units: boolImplementations§
§impl IntervalParseConfig
impl IntervalParseConfig
pub fn new(default_unit: IntervalUnit) -> IntervalParseConfig
pub fn new(default_unit: IntervalUnit) -> IntervalParseConfig
Create a new IntervalParseConfig with the given default unit
Trait Implementations§
§impl Clone for IntervalParseConfig
impl Clone for IntervalParseConfig
§fn clone(&self) -> IntervalParseConfig
fn clone(&self) -> IntervalParseConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Forget for IntervalParseConfig
impl Freeze for IntervalParseConfig
impl Move for IntervalParseConfig
impl RefUnwindSafe for IntervalParseConfig
impl Send for IntervalParseConfig
impl Sync for IntervalParseConfig
impl Unpin for IntervalParseConfig
impl UnsafeUnpin for IntervalParseConfig
impl UnwindSafe for IntervalParseConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more