pub struct Position3D {
pub x: f32,
pub y: f32,
pub z: f32,
}Fields§
§x: f32§y: f32§z: f32Trait Implementations§
Source§impl Clone for Position3D
impl Clone for Position3D
Source§fn clone(&self) -> Position3D
fn clone(&self) -> Position3D
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 Debug for Position3D
impl Debug for Position3D
Source§impl Delta for Position3D
impl Delta for Position3D
type DeltaType = PositionDelta
Source§fn compute_delta(start: &Self, end: &Self) -> Self::DeltaType
fn compute_delta(start: &Self, end: &Self) -> Self::DeltaType
Computes the delta required to go from
start to end.
start + delta = endSource§fn apply_delta(start: &Self, delta: &Self::DeltaType) -> Self
fn apply_delta(start: &Self, delta: &Self::DeltaType) -> Self
Applies a delta to
start to get end.
start + delta = endSource§impl<'de> Deserialize<'de> for Position3D
impl<'de> Deserialize<'de> for Position3D
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 Position3D
impl PartialEq for Position3D
Source§impl Serialize for Position3D
impl Serialize for Position3D
impl Copy for Position3D
impl StructuralPartialEq for Position3D
Auto Trait Implementations§
impl Freeze for Position3D
impl RefUnwindSafe for Position3D
impl Send for Position3D
impl Sync for Position3D
impl Unpin for Position3D
impl UnwindSafe for Position3D
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