Struct IntervalParseConfig
pub struct IntervalParseConfig {
default_unit: IntervalUnit,
}
Expand description
Config to parse interval strings
Currently stores the default_unit
to use if the string doesn’t have one specified
Fields§
§default_unit: IntervalUnit
Implementations§
§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 copy of the value. Read more
1.0.0 · 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 Freeze for IntervalParseConfig
impl RefUnwindSafe for IntervalParseConfig
impl Send for IntervalParseConfig
impl Sync for IntervalParseConfig
impl Unpin for IntervalParseConfig
impl UnwindSafe for IntervalParseConfig
Blanket Implementations§
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