Struct libreda_db::chip::Shapes
source · pub struct Shapes<C>where
C: CoordinateType,{
shapes: FnvHashMap<ShapeId, Shape<C>>,
shape_properties: FnvHashMap<ShapeId, PropertyStore<String>>,
}Expand description
Shapes<T> is a collection of Shape<T> structs. Each of
the elements is assigned an index when inserted into the collection.
Fields§
§shapes: FnvHashMap<ShapeId, Shape<C>>Shape elements.
shape_properties: FnvHashMap<ShapeId, PropertyStore<String>>Property stores for the shapes.
Implementations§
source§impl<C: CoordinateType> Shapes<C>
impl<C: CoordinateType> Shapes<C>
Trait Implementations§
source§impl<'de, C> Deserialize<'de> for Shapes<C>where
C: CoordinateType + Deserialize<'de>,
impl<'de, C> Deserialize<'de> for Shapes<C>where C: CoordinateType + Deserialize<'de>,
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<C: CoordinateType> TryBoundingBox<C> for Shapes<C>
impl<C: CoordinateType> TryBoundingBox<C> for Shapes<C>
source§fn try_bounding_box(&self) -> Option<Rect<C>>
fn try_bounding_box(&self) -> Option<Rect<C>>
Return the bounding box of this geometry if a bounding box is defined.