pub struct IndexPoint<M> {
pub s2point: S2Point,
pub data: M,
}Expand description
An Indexed Point
Fields§
§s2point: S2PointS2Point (3D vector)
data: MData associated with the point
Implementations§
Trait Implementations§
Source§impl<M: Clone> Clone for IndexPoint<M>
impl<M: Clone> Clone for IndexPoint<M>
Source§fn clone(&self) -> IndexPoint<M>
fn clone(&self) -> IndexPoint<M>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: Debug> Debug for IndexPoint<M>
impl<M: Debug> Debug for IndexPoint<M>
Source§impl<'de, M> Deserialize<'de> for IndexPoint<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for IndexPoint<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
Source§impl<M> GetXY for IndexPoint<M>
impl<M> GetXY for IndexPoint<M>
Source§impl<M: PartialEq> PartialEq for IndexPoint<M>
impl<M: PartialEq> PartialEq for IndexPoint<M>
Source§impl<M> Serialize for IndexPoint<M>where
M: Serialize,
impl<M> Serialize for IndexPoint<M>where
M: Serialize,
impl<M> StructuralPartialEq for IndexPoint<M>
Auto Trait Implementations§
impl<M> Freeze for IndexPoint<M>where
M: Freeze,
impl<M> RefUnwindSafe for IndexPoint<M>where
M: RefUnwindSafe,
impl<M> Send for IndexPoint<M>where
M: Send,
impl<M> Sync for IndexPoint<M>where
M: Sync,
impl<M> Unpin for IndexPoint<M>where
M: Unpin,
impl<M> UnwindSafe for IndexPoint<M>where
M: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more