Core algorithms and API for packing images into texture atlases (Skyline / MaxRects / Guillotine). Returns pages (RGBA) and metadata (JSON/Plist/templates).
usecrate::model::{Frame, Rect};pubmodguillotine;pubmodmaxrects;pubmodskyline;/// A packer places rectangles into a page.
////// Implementations must ensure no overlaps and respect the configured border/padding.
/// `pack` may return `None` if the rectangle cannot be placed on the current page.
pubtraitPacker<K> {fncan_pack(&self, rect:&Rect)->bool;fnpack(&mutself, key: K, rect:&Rect)->Option<Frame<K>>;}