pub struct Property3D<T>where
T: Copy,{ /* private fields */ }
Expand description
Property in a three-dimensional world
The F1 games publish data that places objects in a three dimensional world. Examples include the position of a car, its velocity, or the direction of its motion.
§Examples
use f1_api::types::Property3D;
let g_forces = Property3D::new(1.0, 1.3, 0.9);
Implementations§
Source§impl<T> Property3D<T>where
T: Copy,
impl<T> Property3D<T>where
T: Copy,
Source§impl<T> Property3D<T>where
T: Copy,
impl<T> Property3D<T>where
T: Copy,
Trait Implementations§
Source§impl<T> Clone for Property3D<T>
impl<T> Clone for Property3D<T>
Source§fn clone(&self) -> Property3D<T>
fn clone(&self) -> Property3D<T>
Returns a duplicate 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<T> Debug for Property3D<T>
impl<T> Debug for Property3D<T>
Source§impl<T> Default for Property3D<T>
impl<T> Default for Property3D<T>
Source§fn default() -> Property3D<T>
fn default() -> Property3D<T>
Returns the “default value” for a type. Read more
Source§impl<T> Hash for Property3D<T>
impl<T> Hash for Property3D<T>
Source§impl<T> Ord for Property3D<T>
impl<T> Ord for Property3D<T>
Source§fn cmp(&self, other: &Property3D<T>) -> Ordering
fn cmp(&self, other: &Property3D<T>) -> 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<T> PartialEq for Property3D<T>
impl<T> PartialEq for Property3D<T>
Source§impl<T> PartialOrd for Property3D<T>where
T: Copy + PartialOrd,
impl<T> PartialOrd for Property3D<T>where
T: Copy + PartialOrd,
impl<T> Copy for Property3D<T>
impl<T> Eq for Property3D<T>
impl<T> StructuralPartialEq for Property3D<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for Property3D<T>where
T: Freeze,
impl<T> RefUnwindSafe for Property3D<T>where
T: RefUnwindSafe,
impl<T> Send for Property3D<T>where
T: Send,
impl<T> Sync for Property3D<T>where
T: Sync,
impl<T> Unpin for Property3D<T>where
T: Unpin,
impl<T> UnwindSafe for Property3D<T>where
T: UnwindSafe,
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