Struct hayagriva::types::DurationRange
source · pub struct DurationRange {
pub start: Duration,
pub end: Duration,
}
Expand description
An half-open interval of durations.
Fields§
§start: Duration
The start of the interval.
end: Duration
The end of the interval.
Implementations§
Trait Implementations§
source§impl Clone for DurationRange
impl Clone for DurationRange
source§fn clone(&self) -> DurationRange
fn clone(&self) -> DurationRange
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 moresource§impl Debug for DurationRange
impl Debug for DurationRange
source§impl<'de> Deserialize<'de> for DurationRange
impl<'de> Deserialize<'de> for DurationRange
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for DurationRange
impl Display for DurationRange
source§impl FromStr for DurationRange
impl FromStr for DurationRange
source§impl Hash for DurationRange
impl Hash for DurationRange
source§impl PartialEq for DurationRange
impl PartialEq for DurationRange
source§fn eq(&self, other: &DurationRange) -> bool
fn eq(&self, other: &DurationRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DurationRange
impl Serialize for DurationRange
impl Copy for DurationRange
impl Eq for DurationRange
impl StructuralPartialEq for DurationRange
Auto Trait Implementations§
impl RefUnwindSafe for DurationRange
impl Send for DurationRange
impl Sync for DurationRange
impl Unpin for DurationRange
impl UnwindSafe for DurationRange
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.