pub type Size = Size<u16>;Expand description
Size of the grid.
width/height are public fields, readable directly (size.width). For method-call style
(size.width()), bring HasSize into scope: it’s re-exported from this module rather than
ixy so callers never need a direct ixy dependency just to call it.
§Examples
use retroglyph_core::grid::{HasSize, Size};
let size = Size::new(80, 24);
assert_eq!(size.width, 80);
assert_eq!(size.width(), 80);This crate’s serde feature forwards to [ixy]’s own serde feature, so Size 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 Size {
pub width: u16,
pub height: u16,
}Fields§
§width: u16Width.
height: u16Height.