pub struct UtcSpan { /* private fields */ }Expand description
The moments a selection by time keeps: [since, until) in UTC, an
absent end left open (crates/runtime/spec/Clock.lean §8-57).
It judges one moment at a time and assumes no order: a ledger’s t
does not rise with seq, so a reader asks about every line and never
stops at the first one past until.
Implementations§
Source§impl UtcSpan
impl UtcSpan
Sourcepub fn new(
since: Option<TimeMs>,
until: Option<TimeMs>,
) -> Result<UtcSpan, AxError>
pub fn new( since: Option<TimeMs>, until: Option<TimeMs>, ) -> Result<UtcSpan, AxError>
§Errors
E_INVALID_ARGS when until is not after since: such a span
holds no moment, and selecting by it would read as a stretch of
history in which nothing happened.
pub fn since(&self) -> Option<TimeMs>
pub fn until(&self) -> Option<TimeMs>
Trait Implementations§
impl Copy for UtcSpan
impl Eq for UtcSpan
impl StructuralPartialEq for UtcSpan
Auto Trait Implementations§
impl Freeze for UtcSpan
impl RefUnwindSafe for UtcSpan
impl Send for UtcSpan
impl Sync for UtcSpan
impl Unpin for UtcSpan
impl UnsafeUnpin for UtcSpan
impl UnwindSafe for UtcSpan
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