pub struct STPoint<M = MValue> {
pub face: Face,
pub s: f64,
pub t: f64,
pub z: Option<f64>,
pub m: Option<M>,
}
Expand description
A Point in S2 Space with a Face
Fields§
§face: Face
The face of the point
s: f64
The s coordinate
t: f64
The t coordinate
z: Option<f64>
The z coordinate
m: Option<M>
The m coordinate
Trait Implementations§
Source§impl<'de, M> Deserialize<'de> for STPoint<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for STPoint<M>where
M: Deserialize<'de>,
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<M> StructuralPartialEq for STPoint<M>
Auto Trait Implementations§
impl<M> Freeze for STPoint<M>where
M: Freeze,
impl<M> RefUnwindSafe for STPoint<M>where
M: RefUnwindSafe,
impl<M> Send for STPoint<M>where
M: Send,
impl<M> Sync for STPoint<M>where
M: Sync,
impl<M> Unpin for STPoint<M>where
M: Unpin,
impl<M> UnwindSafe for STPoint<M>where
M: 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