Struct gd32f1x0_hal::time::MilliSeconds
source · [−]pub struct MilliSeconds(pub u32);
Expand description
Time unit
Tuple Fields
0: u32
Trait Implementations
sourceimpl Clone for MilliSeconds
impl Clone for MilliSeconds
sourcefn clone(&self) -> MilliSeconds
fn clone(&self) -> MilliSeconds
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<MilliSeconds> for Hertz
impl From<MilliSeconds> for Hertz
sourcefn from(milliseconds: MilliSeconds) -> Self
fn from(milliseconds: MilliSeconds) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<MilliSeconds> for MilliSeconds
impl PartialEq<MilliSeconds> for MilliSeconds
sourcefn eq(&self, other: &MilliSeconds) -> bool
fn eq(&self, other: &MilliSeconds) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MilliSeconds) -> bool
fn ne(&self, other: &MilliSeconds) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MilliSeconds> for MilliSeconds
impl PartialOrd<MilliSeconds> for MilliSeconds
sourcefn partial_cmp(&self, other: &MilliSeconds) -> Option<Ordering>
fn partial_cmp(&self, other: &MilliSeconds) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for MilliSeconds
impl StructuralPartialEq for MilliSeconds
Auto Trait Implementations
impl RefUnwindSafe for MilliSeconds
impl Send for MilliSeconds
impl Sync for MilliSeconds
impl Unpin for MilliSeconds
impl UnwindSafe for MilliSeconds
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more