//! Produce, store, and reuse geometry.
modcache;pubusecache::Cache;usecrate::Primitive;useiced_native::Size;usestd::sync::Arc;/// A layer that can be presented at a [`Canvas`].
////// [`Canvas`]: ../struct.Canvas.html
pubtraitLayer: std::fmt::Debug {/// Draws the [`Layer`] in the given bounds and produces a [`Primitive`] as
/// a result.
////// The [`Layer`] may choose to store the produced [`Primitive`] locally and
/// only recompute it when the bounds change, its contents change, or is
/// otherwise explicitly cleared by other means.
////// [`Layer`]: trait.Layer.html
/// [`Primitive`]: ../../../enum.Primitive.html
fndraw(&self, bounds: Size)->Arc<Primitive>;}