grixy 0.5.0-alpha.2

2-dimensional grids
Documentation
//! Prelude for the grixy crate, re-exporting commonly used items.
//!
//! ```rust
//! use grixy::prelude::*;
//!
//! let mut grid = VecGrid::new_row_major(10, 10);
//! grid.set(Pos::new(5, 5), 42);
//!
//! assert_eq!(grid.get(Pos::new(5, 5)), Some(&42));
//! ```

#[cfg(feature = "alloc")]
pub use crate::buf::VecGrid;
pub use crate::buf::{ArrayGrid, GridBuf, SliceGrid, SliceMutGrid};

pub use crate::core::{Pos, Rect, RowMajor, Size};
pub use crate::ops::{
    BoundedGrid as _, //
    GridRead as _,
    GridWrite as _,
    blit_rect,
    blit_rect_scaled,
    copy_rect,
    copy_rect_scaled,
};