pub struct AnnotationSpan {
pub start_ns: u64,
pub end_ns: u64,
}Expand description
Inclusive annotation time span in nanoseconds.
Fields§
§start_ns: u64Start nanos.
end_ns: u64End nanos.
Implementations§
Source§impl AnnotationSpan
impl AnnotationSpan
Sourcepub fn try_new(start_ns: u64, end_ns: u64) -> EpisodeResult<Self>
pub fn try_new(start_ns: u64, end_ns: u64) -> EpisodeResult<Self>
Creates a validated span.
Trait Implementations§
Source§impl Clone for AnnotationSpan
impl Clone for AnnotationSpan
Source§fn clone(&self) -> AnnotationSpan
fn clone(&self) -> AnnotationSpan
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 AnnotationSpan
impl Debug for AnnotationSpan
Source§impl Hash for AnnotationSpan
impl Hash for AnnotationSpan
Source§impl PartialEq for AnnotationSpan
impl PartialEq for AnnotationSpan
Source§fn eq(&self, other: &AnnotationSpan) -> bool
fn eq(&self, other: &AnnotationSpan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AnnotationSpan
impl Eq for AnnotationSpan
impl StructuralPartialEq for AnnotationSpan
Auto Trait Implementations§
impl Freeze for AnnotationSpan
impl RefUnwindSafe for AnnotationSpan
impl Send for AnnotationSpan
impl Sync for AnnotationSpan
impl Unpin for AnnotationSpan
impl UnsafeUnpin for AnnotationSpan
impl UnwindSafe for AnnotationSpan
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