Struct libreda_db::reference_access::ShapeRef
source · pub struct ShapeRef<'a, L: LayoutBase + ?Sized> {
pub(super) base: &'a L,
pub(super) id: L::ShapeId,
}
Expand description
Reference to a shape.
Fields§
§base: &'a L
Reference to the parent data structure.
id: L::ShapeId
ID of the shape.
Implementations§
source§impl<'a, L: LayoutBase> ShapeRef<'a, L>
impl<'a, L: LayoutBase> ShapeRef<'a, L>
sourcepub fn geometry_cloned(&self) -> Geometry<L::Coord>
pub fn geometry_cloned(&self) -> Geometry<L::Coord>
Get the cloned geometry struct representing this shape.