pub enum SignedDuration {
Positive(Duration),
Negative(Duration),
}Expand description
Signed duration type used for seeking.
This is just a bare bones type that should only be used for
seeking player position, and not as a Duration replacement.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SignedDuration
impl Clone for SignedDuration
Source§fn clone(&self) -> SignedDuration
fn clone(&self) -> SignedDuration
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 moreSource§impl Debug for SignedDuration
impl Debug for SignedDuration
Source§impl<'de> Deserialize<'de> for SignedDuration
impl<'de> Deserialize<'de> for SignedDuration
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 Hash for SignedDuration
impl Hash for SignedDuration
Source§impl Ord for SignedDuration
impl Ord for SignedDuration
Source§fn cmp(&self, other: &SignedDuration) -> Ordering
fn cmp(&self, other: &SignedDuration) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SignedDuration
impl PartialEq for SignedDuration
Source§fn eq(&self, other: &SignedDuration) -> bool
fn eq(&self, other: &SignedDuration) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SignedDuration
impl PartialOrd for SignedDuration
Source§impl Serialize for SignedDuration
impl Serialize for SignedDuration
impl Copy for SignedDuration
impl Eq for SignedDuration
impl StructuralPartialEq for SignedDuration
Auto Trait Implementations§
impl Freeze for SignedDuration
impl RefUnwindSafe for SignedDuration
impl Send for SignedDuration
impl Sync for SignedDuration
impl Unpin for SignedDuration
impl UnsafeUnpin for SignedDuration
impl UnwindSafe for SignedDuration
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