Struct kdb::Timespan[][src]

#[repr(transparent)]pub struct Timespan(_);

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]

type Error = ConversionError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.