pub struct ModifiedRange { /* private fields */ }Expand description
A half-open range of modification instants.
The lower bound is inclusive and the upper bound is exclusive. Bounds retain the
precision and range of the supplied SystemTime values.
Implementations§
Source§impl ModifiedRange
impl ModifiedRange
Sourcepub fn new(
since: Option<SystemTime>,
before: Option<SystemTime>,
) -> Result<Self>
pub fn new( since: Option<SystemTime>, before: Option<SystemTime>, ) -> Result<Self>
Constructs a range with at least one bound.
Returns a crate::ValidationError if both bounds are absent or the lower
bound is greater than or equal to the upper bound.
Sourcepub fn since(&self) -> Option<SystemTime>
pub fn since(&self) -> Option<SystemTime>
Returns the inclusive lower bound, if specified.
Sourcepub fn before(&self) -> Option<SystemTime>
pub fn before(&self) -> Option<SystemTime>
Returns the exclusive upper bound, if specified.
Trait Implementations§
Source§impl Clone for ModifiedRange
impl Clone for ModifiedRange
Source§impl Debug for ModifiedRange
impl Debug for ModifiedRange
impl Eq for ModifiedRange
Source§impl PartialEq for ModifiedRange
impl PartialEq for ModifiedRange
impl StructuralPartialEq for ModifiedRange
Auto Trait Implementations§
impl Forget for ModifiedRange
impl Freeze for ModifiedRange
impl Move for ModifiedRange
impl RefUnwindSafe for ModifiedRange
impl Send for ModifiedRange
impl Sync for ModifiedRange
impl Unpin for ModifiedRange
impl UnsafeUnpin for ModifiedRange
impl UnwindSafe for ModifiedRange
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