Struct libreda_db::region_search::ShapeEntry
source · [−]pub struct ShapeEntry<ShapeId, Coord> {
bounding_box: Rect<Coord>,
shape_id: ShapeId,
}
Expand description
Wrapper for shapes.
Fields
bounding_box: Rect<Coord>
shape_id: ShapeId
Trait Implementations
sourceimpl<ShapeId, Coord> BoundingBox<Coord> for ShapeEntry<ShapeId, Coord> where
Coord: PrimInt,
impl<ShapeId, Coord> BoundingBox<Coord> for ShapeEntry<ShapeId, Coord> where
Coord: PrimInt,
sourcefn bounding_box(&self) -> Rect<Coord>
fn bounding_box(&self) -> Rect<Coord>
Return the bounding box of this geometry.
sourceimpl<ShapeId: Clone, Coord: Clone> Clone for ShapeEntry<ShapeId, Coord>
impl<ShapeId: Clone, Coord: Clone> Clone for ShapeEntry<ShapeId, Coord>
sourcefn clone(&self) -> ShapeEntry<ShapeId, Coord>
fn clone(&self) -> ShapeEntry<ShapeId, Coord>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<ShapeId: Debug, Coord: Debug> Debug for ShapeEntry<ShapeId, Coord>
impl<ShapeId: Debug, Coord: Debug> Debug for ShapeEntry<ShapeId, Coord>
sourceimpl<ShapeId: PartialEq, Coord: PartialEq> PartialEq<ShapeEntry<ShapeId, Coord>> for ShapeEntry<ShapeId, Coord>
impl<ShapeId: PartialEq, Coord: PartialEq> PartialEq<ShapeEntry<ShapeId, Coord>> for ShapeEntry<ShapeId, Coord>
sourcefn eq(&self, other: &ShapeEntry<ShapeId, Coord>) -> bool
fn eq(&self, other: &ShapeEntry<ShapeId, Coord>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ShapeEntry<ShapeId, Coord>) -> bool
fn ne(&self, other: &ShapeEntry<ShapeId, Coord>) -> bool
This method tests for !=
.
sourceimpl<ShapeId, Coord> RTreeObject for ShapeEntry<ShapeId, Coord> where
Coord: PrimInt + Signed + Debug,
impl<ShapeId, Coord> RTreeObject for ShapeEntry<ShapeId, Coord> where
Coord: PrimInt + Signed + Debug,
impl<ShapeId, Coord> StructuralPartialEq for ShapeEntry<ShapeId, Coord>
Auto Trait Implementations
impl<ShapeId, Coord> RefUnwindSafe for ShapeEntry<ShapeId, Coord> where
Coord: RefUnwindSafe,
ShapeId: RefUnwindSafe,
impl<ShapeId, Coord> Send for ShapeEntry<ShapeId, Coord> where
Coord: Send,
ShapeId: Send,
impl<ShapeId, Coord> Sync for ShapeEntry<ShapeId, Coord> where
Coord: Sync,
ShapeId: Sync,
impl<ShapeId, Coord> Unpin for ShapeEntry<ShapeId, Coord> where
Coord: Unpin,
ShapeId: Unpin,
impl<ShapeId, Coord> UnwindSafe for ShapeEntry<ShapeId, Coord> where
Coord: UnwindSafe,
ShapeId: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more