[][src]Struct ev3::Duration

pub struct Duration { /* fields omitted */ }

Methods

impl Duration[src]

pub fn new(ticks: i32) -> Self[src]

pub fn from_usec(usec: i32) -> Self[src]

pub fn from_msec(msec: i32) -> Self[src]

pub fn zero() -> Self[src]

pub fn usec(self) -> i32[src]

pub fn msec(self) -> i32[src]

pub fn sec(self) -> i32[src]

Trait Implementations

impl PartialEq<Duration> for Duration[src]

impl PartialOrd<Duration> for Duration[src]

impl Add<Duration> for Duration[src]

type Output = Self

The resulting type after applying the + operator.

impl Sub<Duration> for Duration[src]

type Output = Self

The resulting type after applying the - operator.

impl AddAssign<Duration> for Duration[src]

impl SubAssign<Duration> for Duration[src]

impl Copy for Duration[src]

impl Clone for Duration[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Duration

impl Sync for Duration

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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