pub struct SourceTimeRangeV1 { /* private fields */ }Expand description
Finite inclusive source-time range in seconds.
Implementations§
Source§impl SourceTimeRangeV1
impl SourceTimeRangeV1
Sourcepub fn new(begin_s: f64, end_s: f64) -> Result<Self, SourceFactsError>
pub fn new(begin_s: f64, end_s: f64) -> Result<Self, SourceFactsError>
Construct a finite ordered source-time range. Zero duration is valid.
§Errors
Returns SourceFactsError::InvalidTimeRange for non-finite or reversed endpoints.
Trait Implementations§
Source§impl Clone for SourceTimeRangeV1
impl Clone for SourceTimeRangeV1
Source§fn clone(&self) -> SourceTimeRangeV1
fn clone(&self) -> SourceTimeRangeV1
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 SourceTimeRangeV1
Source§impl Debug for SourceTimeRangeV1
impl Debug for SourceTimeRangeV1
Source§impl PartialEq for SourceTimeRangeV1
impl PartialEq for SourceTimeRangeV1
impl StructuralPartialEq for SourceTimeRangeV1
Auto Trait Implementations§
impl Freeze for SourceTimeRangeV1
impl RefUnwindSafe for SourceTimeRangeV1
impl Send for SourceTimeRangeV1
impl Sync for SourceTimeRangeV1
impl Unpin for SourceTimeRangeV1
impl UnsafeUnpin for SourceTimeRangeV1
impl UnwindSafe for SourceTimeRangeV1
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