pub struct Velocity2D {
pub vx: f32,
pub vy: f32,
}Fields§
§vx: f32§vy: f32Trait Implementations§
Source§impl Clone for Velocity2D
impl Clone for Velocity2D
Source§fn clone(&self) -> Velocity2D
fn clone(&self) -> Velocity2D
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 moreimpl Copy for Velocity2D
Source§impl Debug for Velocity2D
impl Debug for Velocity2D
Source§impl<'de> Deserialize<'de> for Velocity2D
impl<'de> Deserialize<'de> for Velocity2D
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 PartialEq for Velocity2D
impl PartialEq for Velocity2D
Source§fn eq(&self, other: &Velocity2D) -> bool
fn eq(&self, other: &Velocity2D) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Velocity2D
impl Serialize for Velocity2D
impl StructuralPartialEq for Velocity2D
Auto Trait Implementations§
impl Freeze for Velocity2D
impl RefUnwindSafe for Velocity2D
impl Send for Velocity2D
impl Sync for Velocity2D
impl Unpin for Velocity2D
impl UnsafeUnpin for Velocity2D
impl UnwindSafe for Velocity2D
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