Struct ros2_client::ros_time::ROSDuration
source · pub struct ROSDuration { /* private fields */ }
Expand description
Difference between ROSTime
or SystemTime
instances
Supports conversions to/from
Implementations§
source§impl ROSDuration
impl ROSDuration
Trait Implementations§
source§impl Add<ROSDuration> for ROSTime
impl Add<ROSDuration> for ROSTime
source§impl Add for ROSDuration
impl Add for ROSDuration
Note: panics on overflow/underflow like integer arithmetic
§type Output = ROSDuration
type Output = ROSDuration
The resulting type after applying the
+
operator.source§fn add(self, other: ROSDuration) -> ROSDuration
fn add(self, other: ROSDuration) -> ROSDuration
Performs the
+
operation. Read moresource§impl From<ROSDuration> for Duration
impl From<ROSDuration> for Duration
source§fn from(d: ROSDuration) -> Duration
fn from(d: ROSDuration) -> Duration
Converts to this type from the input type.
source§impl Sub<ROSDuration> for ROSTime
impl Sub<ROSDuration> for ROSTime
source§impl Sub for ROSDuration
impl Sub for ROSDuration
Note: panics on overflow/underflow like integer arithmetic
§type Output = ROSDuration
type Output = ROSDuration
The resulting type after applying the
-
operator.source§fn sub(self, other: ROSDuration) -> ROSDuration
fn sub(self, other: ROSDuration) -> ROSDuration
Performs the
-
operation. Read moresource§impl TryFrom<Duration> for ROSDuration
impl TryFrom<Duration> for ROSDuration
source§impl TryFrom<ROSDuration> for Duration
impl TryFrom<ROSDuration> for Duration
§type Error = OutOfRangeError
type Error = OutOfRangeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ROSDuration
impl RefUnwindSafe for ROSDuration
impl Send for ROSDuration
impl Sync for ROSDuration
impl Unpin for ROSDuration
impl UnwindSafe for ROSDuration
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