Struct libreda_db::region_search::ShapeEntry
source · pub struct ShapeEntry<ShapeId, Coord> { /* private fields */ }Expand description
Wrapper for shapes.
Trait 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 for ShapeEntry<ShapeId, Coord>
impl<ShapeId: PartialEq, Coord: PartialEq> PartialEq 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 ==.source§impl<ShapeId, Coord> RTreeObject for ShapeEntry<ShapeId, Coord>
impl<ShapeId, Coord> RTreeObject for ShapeEntry<ShapeId, Coord>
impl<ShapeId, Coord> StructuralPartialEq for ShapeEntry<ShapeId, Coord>
Auto Trait Implementations§
impl<ShapeId, Coord> Freeze for ShapeEntry<ShapeId, Coord>
impl<ShapeId, Coord> RefUnwindSafe for ShapeEntry<ShapeId, Coord>where
ShapeId: RefUnwindSafe,
Coord: RefUnwindSafe,
impl<ShapeId, Coord> Send for ShapeEntry<ShapeId, Coord>
impl<ShapeId, Coord> Sync for ShapeEntry<ShapeId, Coord>
impl<ShapeId, Coord> Unpin for ShapeEntry<ShapeId, Coord>
impl<ShapeId, Coord> UnwindSafe for ShapeEntry<ShapeId, Coord>where
ShapeId: UnwindSafe,
Coord: 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
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