pub struct ChainTopRightDown<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> {}
Expand description
Chaining strategy for tiled panels
This type should be provided to the TiledFrameBuffer
as a type argument.
Take a look at its documentation for more details
When looking at the front, panels are chained together starting at the top right, chaining to the left until the end of the column. Then wrapping down to the next row where panels are chained left to right. This makes every second rows panels installed upside down. This pattern repeats until all rows of panels are covered.
§Type Parameters
PANEL_ROWS
- Number of rows in a single panelPANEL_COLS
- Number of columns in a single panelTILE_ROWS
- Number of panels stacked verticallyTILE_COLS
- Number of panels stacked horizontally
Trait Implementations§
Source§impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> Debug for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> Debug for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
Source§impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> PixelRemapper for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> PixelRemapper for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
Source§fn remap_xy(x: usize, y: usize) -> (usize, usize)
fn remap_xy(x: usize, y: usize) -> (usize, usize)
Remap an x,y coordinate to a framebuffer pixel
Source§fn remap<C: PixelColor>(pixel: Pixel<C>) -> Pixel<C>
fn remap<C: PixelColor>(pixel: Pixel<C>) -> Pixel<C>
Remap a virtual pixel to a framebuffer pixel
Source§fn remap_point(point: Point) -> Point
fn remap_point(point: Point) -> Point
Remap a virtual point to a framebuffer point
Source§fn virtual_size() -> (usize, usize)
fn virtual_size() -> (usize, usize)
Size of the virtual panel
Auto Trait Implementations§
impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> Freeze for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> RefUnwindSafe for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> Send for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> Sync for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> Unpin for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
impl<const PANEL_ROWS: usize, const PANEL_COLS: usize, const TILE_ROWS: usize, const TILE_COLS: usize> UnwindSafe for ChainTopRightDown<PANEL_ROWS, PANEL_COLS, TILE_ROWS, TILE_COLS>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.