pub enum OverflowBehavior {
Error,
Saturate,
}Expand description
Behavior when a parsed value exceeds Duration’s maximum.
Variants§
Trait Implementations§
Source§impl Clone for OverflowBehavior
impl Clone for OverflowBehavior
Source§fn clone(&self) -> OverflowBehavior
fn clone(&self) -> OverflowBehavior
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 moreimpl Copy for OverflowBehavior
Source§impl Debug for OverflowBehavior
impl Debug for OverflowBehavior
impl Eq for OverflowBehavior
Source§impl PartialEq for OverflowBehavior
impl PartialEq for OverflowBehavior
Source§fn eq(&self, other: &OverflowBehavior) -> bool
fn eq(&self, other: &OverflowBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OverflowBehavior
Auto Trait Implementations§
impl Freeze for OverflowBehavior
impl RefUnwindSafe for OverflowBehavior
impl Send for OverflowBehavior
impl Sync for OverflowBehavior
impl Unpin for OverflowBehavior
impl UnsafeUnpin for OverflowBehavior
impl UnwindSafe for OverflowBehavior
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