pub struct Point3d<T: Copy + PartialOrd + PartialEq + Debug + Add + Sub> {
pub x: T,
pub y: T,
pub z: T,
}Expand description
Point3d struct for 3d points
Fields§
§x: Tx value
y: Ty value
z: Tz value
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Point3d<T>
impl<'de, T> Deserialize<'de> for Point3d<T>
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<T: PartialEq + Copy + PartialOrd + PartialEq + Debug + Add + Sub> PartialEq for Point3d<T>
impl<T: PartialEq + Copy + PartialOrd + PartialEq + Debug + Add + Sub> PartialEq for Point3d<T>
impl<T: Copy + Copy + PartialOrd + PartialEq + Debug + Add + Sub> Copy for Point3d<T>
impl<T: Eq + Copy + PartialOrd + PartialEq + Debug + Add + Sub> Eq for Point3d<T>
impl<T: Copy + PartialOrd + PartialEq + Debug + Add + Sub> StructuralPartialEq for Point3d<T>
Auto Trait Implementations§
impl<T> Freeze for Point3d<T>where
T: Freeze,
impl<T> RefUnwindSafe for Point3d<T>where
T: RefUnwindSafe,
impl<T> Send for Point3d<T>where
T: Send,
impl<T> Sync for Point3d<T>where
T: Sync,
impl<T> Unpin for Point3d<T>where
T: Unpin,
impl<T> UnwindSafe for Point3d<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.