[][src]Trait wlroots::utils::ToMs

pub trait ToMs {
    fn to_ms(self) -> u32;
}

Trait to convert something to milliseconds.

Used primarily to convert a std::time::Duration into something usable by wlroots

Required Methods

Convert the time to a millisecond representation.

This conversion should be lossless.

Implementations on Foreign Types

impl ToMs for Duration
[src]

Implementors