pub struct CmrTimestamp { /* private fields */ }Expand description
Timestamp with unbounded fractional precision.
Implementations§
Source§impl CmrTimestamp
impl CmrTimestamp
Sourcepub fn parse(input: &str) -> Result<Self, ParseError>
pub fn parse(input: &str) -> Result<Self, ParseError>
Parses CMR timestamp syntax.
Sourcepub fn with_fraction(self, fraction: String) -> Self
pub fn with_fraction(self, fraction: String) -> Self
Returns a clone with fractional seconds replaced.
Sourcepub fn is_newer_than(&self, other: &Self) -> bool
pub fn is_newer_than(&self, other: &Self) -> bool
Returns true when this timestamp is newer than other.
Trait Implementations§
Source§impl Clone for CmrTimestamp
impl Clone for CmrTimestamp
Source§fn clone(&self) -> CmrTimestamp
fn clone(&self) -> CmrTimestamp
Returns a duplicate 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 CmrTimestamp
impl Debug for CmrTimestamp
Source§impl<'de> Deserialize<'de> for CmrTimestamp
impl<'de> Deserialize<'de> for CmrTimestamp
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 CmrTimestamp
impl Display for CmrTimestamp
Source§impl Hash for CmrTimestamp
impl Hash for CmrTimestamp
Source§impl Ord for CmrTimestamp
impl Ord for CmrTimestamp
Source§impl PartialEq for CmrTimestamp
impl PartialEq for CmrTimestamp
Source§impl PartialOrd for CmrTimestamp
impl PartialOrd for CmrTimestamp
Source§impl Serialize for CmrTimestamp
impl Serialize for CmrTimestamp
impl Eq for CmrTimestamp
impl StructuralPartialEq for CmrTimestamp
Auto Trait Implementations§
impl Freeze for CmrTimestamp
impl RefUnwindSafe for CmrTimestamp
impl Send for CmrTimestamp
impl Sync for CmrTimestamp
impl Unpin for CmrTimestamp
impl UnsafeUnpin for CmrTimestamp
impl UnwindSafe for CmrTimestamp
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