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: ShapeIdTrait Implementations§
source§impl<ShapeId, Coord> BoundingBox<Coord> for ShapeEntry<ShapeId, Coord>where
Coord: PrimInt,
impl<ShapeId, Coord> BoundingBox<Coord> for ShapeEntry<ShapeId, Coord>where Coord: PrimInt,
source§fn bounding_box(&self) -> Rect<Coord>
fn bounding_box(&self) -> Rect<Coord>
Return the bounding box of this geometry.
source§impl<ShapeId: Clone, Coord: Clone> Clone for ShapeEntry<ShapeId, Coord>
impl<ShapeId: Clone, Coord: Clone> Clone for ShapeEntry<ShapeId, Coord>
source§fn clone(&self) -> ShapeEntry<ShapeId, Coord>
fn clone(&self) -> ShapeEntry<ShapeId, Coord>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<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>
source§fn 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 ==.