Struct kdb::Timespan [−][src]
Represents an elapsed span of time
Implementations
impl Timespan
[src]
pub fn from_nanos(nanos: i64) -> Self
[src]
Creates a Timespan from the specified number of nanoseconds.
pub fn from_micros(micros: i64) -> Self
[src]
Creates a Timespan from the specified number of microseconds.
pub fn from_millis(millis: i64) -> Self
[src]
Creates a Timespan from the specified number of milliseconds.
pub fn from_secs(millis: i64) -> Self
[src]
Creates a Timespan from the specified number of seconds.
Trait Implementations
impl Clone for Timespan
[src]
impl Copy for Timespan
[src]
impl Debug for Timespan
[src]
impl Eq for Timespan
[src]
impl From<Atom<Timespan>> for Timespan
[src]
impl From<i64> for Timespan
[src]
impl PartialEq<Timespan> for Timespan
[src]
impl StructuralEq for Timespan
[src]
impl StructuralPartialEq for Timespan
[src]
impl TryFrom<Duration> for Timespan
[src]
Auto Trait Implementations
impl RefUnwindSafe for Timespan
[src]
impl Send for Timespan
[src]
impl Sync for Timespan
[src]
impl Unpin for Timespan
[src]
impl UnwindSafe for Timespan
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,