pub type Rect = Rect<u16>;Expand description
Rectangle in the grid.
.width()/.height() are inherent methods here (unlike on Size), so no HasSize
import is needed to call them.
§Examples
use retroglyph_core::grid::Rect;
let rect = Rect::new(0, 0, 10, 4);
assert_eq!(rect.width(), 10);
assert_eq!(rect.height(), 4);This crate’s serde feature forwards to [ixy]’s own serde feature, so Rect gains
Serialize/Deserialize from its upstream definition rather than one defined here.
A bare alias onto ixy‘s own type, not a newtype: this crate’s stability guarantee covers the
pinned ixy major version, not just the alias (see the crate-level docs’ “Stability” section).
Aliased Type§
pub struct Rect { /* private fields */ }