pub struct IndexPoint {
pub id: u32,
pub position: [f32; 2],
pub score: f32,
}Expand description
A single indexable point. position is an [f32; 2] so it
matches rstar’s Point impl for arrays directly; we convert
to/from glam::Vec2 at the API boundary only.
Fields§
§id: u32§position: [f32; 2]§score: f32Trait Implementations§
Source§impl Clone for IndexPoint
impl Clone for IndexPoint
Source§fn clone(&self) -> IndexPoint
fn clone(&self) -> IndexPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IndexPoint
Source§impl Debug for IndexPoint
impl Debug for IndexPoint
Source§impl<'de> Deserialize<'de> for IndexPoint
impl<'de> Deserialize<'de> for IndexPoint
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 IndexPoint
impl PartialEq for IndexPoint
Source§fn eq(&self, other: &IndexPoint) -> bool
fn eq(&self, other: &IndexPoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexPoint
impl Serialize for IndexPoint
impl StructuralPartialEq for IndexPoint
Auto Trait Implementations§
impl Freeze for IndexPoint
impl RefUnwindSafe for IndexPoint
impl Send for IndexPoint
impl Sync for IndexPoint
impl Unpin for IndexPoint
impl UnsafeUnpin for IndexPoint
impl UnwindSafe for IndexPoint
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