pub struct MotionDuration(/* private fields */);Expand description
Motion duration in milliseconds.
Implementations§
Source§impl MotionDuration
impl MotionDuration
pub fn from_millis(value: u32) -> MotionDuration
pub fn millis(self) -> u32
pub fn is_instant(self) -> bool
Trait Implementations§
Source§impl Clone for MotionDuration
impl Clone for MotionDuration
Source§fn clone(&self) -> MotionDuration
fn clone(&self) -> MotionDuration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MotionDuration
impl Debug for MotionDuration
Source§impl Hash for MotionDuration
impl Hash for MotionDuration
Source§impl Ord for MotionDuration
impl Ord for MotionDuration
Source§fn cmp(&self, other: &MotionDuration) -> Ordering
fn cmp(&self, other: &MotionDuration) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MotionDuration
impl PartialEq for MotionDuration
Source§fn eq(&self, other: &MotionDuration) -> bool
fn eq(&self, other: &MotionDuration) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MotionDuration
impl PartialOrd for MotionDuration
impl Copy for MotionDuration
impl Eq for MotionDuration
impl StructuralPartialEq for MotionDuration
Auto Trait Implementations§
impl Freeze for MotionDuration
impl RefUnwindSafe for MotionDuration
impl Send for MotionDuration
impl Sync for MotionDuration
impl Unpin for MotionDuration
impl UnsafeUnpin for MotionDuration
impl UnwindSafe for MotionDuration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more