pub struct IntervalParseConfig { /* private fields */ }
Expand description
Config to parse interval strings
Currently stores the default_unit
to use if the string doesn’t have one specified
Implementations§
Source§impl IntervalParseConfig
impl IntervalParseConfig
Sourcepub fn new(default_unit: IntervalUnit) -> Self
pub fn new(default_unit: IntervalUnit) -> Self
Create a new IntervalParseConfig with the given default unit
Trait Implementations§
Source§impl Clone for IntervalParseConfig
impl Clone for IntervalParseConfig
Source§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