usecrate::Primitive;/// A bunch of shapes that can be drawn.
////// [`Geometry`] can be easily generated with a [`Frame`] or stored in a
/// [`Cache`].
////// [`Frame`]: crate::widget::canvas::Frame
/// [`Cache`]: crate::widget::canvas::Cache
#[derive(Debug, Clone)]pubstructGeometry(Primitive);implGeometry{pub(crate)fnfrom_primitive(primitive: Primitive)->Self{Self(primitive)}/// Turns the [`Geometry`] into a [`Primitive`].
////// This can be useful if you are building a custom widget.
pubfninto_primitive(self)-> Primitive{self.0}}