Struct gilrs::ff::Ticks [−][src]
pub struct Ticks(_);
Expand description
Represents duration.
This type is only useful as input parameter for other functions in force feedback module. To
create it, use from_ms()
method. Keep in mind that Ticks
is not precise representation
of time.
Example
use gilrs::ff::Ticks;
use std::time::Duration;
let t1 = Ticks::from_ms(110);
let t2 = Ticks::from(Duration::from_millis(130));
/// `Ticks` is not precise.
assert_eq!(t1, t2);
Implementations
Trait Implementations
Performs the +=
operation. Read more
Performs the *=
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Ticks
impl UnwindSafe for Ticks
Blanket Implementations
Mutably borrows from an owned value. Read more