pub struct CuDuration(pub u64);
Expand description
For Robot times, the underlying type is a u64 representing nanoseconds. It is always positive to simplify the reasoning on the user side.
Tuple Fields§
§0: u64
Implementations§
Source§impl CuDuration
impl CuDuration
pub const MIN: CuDuration = _
pub const MAX: CuDuration = _
pub fn max(&self, p0: CuDuration) -> CuDuration
pub fn min(&self, p0: CuDuration) -> CuDuration
Trait Implementations§
Source§impl Add for CuDuration
impl Add for CuDuration
Source§impl AddAssign for CuDuration
impl AddAssign for CuDuration
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl<'de> BorrowDecode<'de> for CuDuration
impl<'de> BorrowDecode<'de> for CuDuration
Source§fn borrow_decode<D: BorrowDecoder<'de>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for CuDuration
impl Clone for CuDuration
Source§fn clone(&self) -> CuDuration
fn clone(&self) -> CuDuration
Returns a copy of the value. Read more
1.0.0 · 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 CuDuration
impl Debug for CuDuration
Source§impl Decode for CuDuration
impl Decode for CuDuration
Source§impl Default for CuDuration
impl Default for CuDuration
Source§fn default() -> CuDuration
fn default() -> CuDuration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CuDuration
impl<'de> Deserialize<'de> for CuDuration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CuDuration
impl Display for CuDuration
Source§impl<T> Div<T> for CuDuration
impl<T> Div<T> for CuDuration
Source§impl Encode for CuDuration
impl Encode for CuDuration
Source§impl From<CuDuration> for Duration
impl From<CuDuration> for Duration
Source§fn from(val: CuDuration) -> Self
fn from(val: CuDuration) -> Self
Converts to this type from the input type.
Source§impl From<CuDuration> for OptionCuTime
impl From<CuDuration> for OptionCuTime
Source§impl From<CuDuration> for Tov
impl From<CuDuration> for Tov
Source§fn from(duration: CuDuration) -> Self
fn from(duration: CuDuration) -> Self
Converts to this type from the input type.
Source§impl From<CuDuration> for u64
impl From<CuDuration> for u64
Source§fn from(val: CuDuration) -> Self
fn from(val: CuDuration) -> Self
Converts to this type from the input type.
Source§impl From<Duration> for CuDuration
bridge the API with standard Durations.
impl From<Duration> for CuDuration
bridge the API with standard Durations.
Source§impl From<u64> for CuDuration
impl From<u64> for CuDuration
Source§impl Mul<CuDuration> for i32
impl Mul<CuDuration> for i32
Source§type Output = CuDuration
type Output = CuDuration
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: CuDuration) -> CuDuration
fn mul(self, rhs: CuDuration) -> CuDuration
Performs the
*
operation. Read moreSource§impl Mul<CuDuration> for u32
impl Mul<CuDuration> for u32
Source§type Output = CuDuration
type Output = CuDuration
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: CuDuration) -> CuDuration
fn mul(self, rhs: CuDuration) -> CuDuration
Performs the
*
operation. Read moreSource§impl Mul<CuDuration> for u64
impl Mul<CuDuration> for u64
Source§type Output = CuDuration
type Output = CuDuration
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: CuDuration) -> CuDuration
fn mul(self, rhs: CuDuration) -> CuDuration
Performs the
*
operation. Read moreSource§impl<T> Mul<T> for CuDuration
impl<T> Mul<T> for CuDuration
Source§type Output = CuDuration
type Output = CuDuration
The resulting type after applying the
*
operator.Source§fn mul(self, rhs: T) -> CuDuration
fn mul(self, rhs: T) -> CuDuration
Performs the
*
operation. Read moreSource§impl Ord for CuDuration
impl Ord for CuDuration
Source§fn cmp(&self, other: &CuDuration) -> Ordering
fn cmp(&self, other: &CuDuration) -> Ordering
1.21.0 · 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 CuDuration
impl PartialEq for CuDuration
Source§impl PartialOrd for CuDuration
impl PartialOrd for CuDuration
Source§impl Serialize for CuDuration
impl Serialize for CuDuration
Source§impl Sub for CuDuration
impl Sub for CuDuration
impl Copy for CuDuration
impl Eq for CuDuration
impl StructuralPartialEq for CuDuration
Auto Trait Implementations§
impl Freeze for CuDuration
impl RefUnwindSafe for CuDuration
impl Send for CuDuration
impl Sync for CuDuration
impl Unpin for CuDuration
impl UnwindSafe for CuDuration
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