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
sourceimpl<C: CoordinateType> Shapes<C>
impl<C: CoordinateType> Shapes<C>
Trait Implementations
sourceimpl<C: Clone> Clone for Shapes<C> where
C: CoordinateType,
impl<C: Clone> Clone for Shapes<C> where
C: CoordinateType,
sourceimpl<C: Debug> Debug for Shapes<C> where
C: CoordinateType,
impl<C: Debug> Debug for Shapes<C> where
C: CoordinateType,
sourceimpl<'de, C> Deserialize<'de> for Shapes<C> where
C: CoordinateType,
C: Deserialize<'de>,
impl<'de, C> Deserialize<'de> for Shapes<C> where
C: CoordinateType,
C: Deserialize<'de>,
sourcefn 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
sourceimpl<C> Serialize for Shapes<C> where
C: CoordinateType,
C: Serialize,
impl<C> Serialize for Shapes<C> where
C: CoordinateType,
C: Serialize,
sourceimpl<C: CoordinateType> TryBoundingBox<C> for Shapes<C>
impl<C: CoordinateType> TryBoundingBox<C> for Shapes<C>
sourcefn 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.
Auto Trait Implementations
impl<C> RefUnwindSafe for Shapes<C> where
C: RefUnwindSafe,
impl<C> Send for Shapes<C> where
C: Send,
impl<C> Sync for Shapes<C> where
C: Sync,
impl<C> Unpin for Shapes<C> where
C: Unpin,
impl<C> UnwindSafe for Shapes<C> where
C: 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