grixy 0.6.0-alpha.2

Zero-cost 2D grids for embedded systems and graphics
Documentation
//! Prelude for the grixy crate, re-exporting commonly used items.
//!
//! ```rust
//! use grixy::prelude::*;
//!
//! let mut grid = GridBuf::<u8, _, _>::new(5, 5);
//! grid.set(Pos::new(4, 4), 42);
//!
//! assert_eq!(grid.get(Pos::new(4, 4)), Some(&42));
//! ```

#[cfg(feature = "buffer")]
pub use crate::buf::{GridBuf, bits::GridBits};
pub use crate::core::{GridError, HasSize as _, Pos, Rect, Size};
pub use crate::ops::{
    ExactSizeGrid as _, GridBase, GridIter as _, GridRead, GridWrite, copy_rect,
    layout::{Block, ColumnMajor, Linear as _, RowMajor, Traversal as _},
};
pub use crate::transform::GridConvertExt as _;