dungeon_cell/layout/
size.rs

1/// Size in bytes.
2///
3/// This is the type to use where a [`IsSize`][crate::marker_traits::IsSize] generic is required.
4/// This type acts as a wrapper for a `usize` const generic value to improve the readability of the
5/// API.
6///
7/// # Examples
8/// ```
9/// use dungeon_cell::layout::Size;
10/// use dungeon_cell::marker_traits::IsSize;
11///
12/// assert_eq!(Size::<4>::VALUE, 4);
13/// ```
14#[derive(Copy, Clone)]
15pub struct Size<const N: usize> {
16    _private: (),
17}