pub struct Point3<L: Copy + Debug + 'static> {
pub x: L,
pub y: L,
pub z: L,
}Expand description
A 3D point with unit-typed coordinates.
This is a scalar type; for large batches use Point3Soa so bulk
operations vectorize.
Fields§
§x: L§y: L§z: LImplementations§
Trait Implementations§
Source§impl<'__de, L, __Context> BorrowDecode<'__de, __Context> for Point3<L>
impl<'__de, L, __Context> BorrowDecode<'__de, __Context> for Point3<L>
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
impl<L: Copy + Copy + Debug + 'static> Copy for Point3<L>
Source§impl<'de, L> Deserialize<'de> for Point3<L>
impl<'de, L> Deserialize<'de> for Point3<L>
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
impl<L: PartialEq + Copy + Debug + 'static> StructuralPartialEq for Point3<L>
Auto Trait Implementations§
impl<L> Freeze for Point3<L>where
L: Freeze,
impl<L> RefUnwindSafe for Point3<L>where
L: RefUnwindSafe,
impl<L> Send for Point3<L>where
L: Send,
impl<L> Sync for Point3<L>where
L: Sync,
impl<L> Unpin for Point3<L>where
L: Unpin,
impl<L> UnsafeUnpin for Point3<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for Point3<L>where
L: 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