pub struct Velocity { /* private fields */ }Expand description
Velocity along the shaft axis (signed: +up, -down).
§Display
Formats as a compact speed string:
let vel = Velocity::from(1.2);
assert_eq!(format!("{vel}"), "1.20m/s");
let stopped = Velocity::from(0.0);
assert_eq!(format!("{stopped}"), "0.00m/s");Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Velocity
impl<'de> Deserialize<'de> for Velocity
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 WorldQuery for &Velocity
impl WorldQuery for &Velocity
impl Copy for Velocity
Auto Trait Implementations§
impl Freeze for Velocity
impl RefUnwindSafe for Velocity
impl Send for Velocity
impl Sync for Velocity
impl Unpin for Velocity
impl UnsafeUnpin for Velocity
impl UnwindSafe for Velocity
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