mappings: rewrite pixel maps to use the stronger geometry primitives and coordinate space APIs
This commit is contained in:
@ -95,10 +95,6 @@ impl<T: CoordLimits<Data = T>, S: CoordinateSpace> Coordinates<T, S> {
|
||||
pub struct Virtual {}
|
||||
impl CoordinateSpace for Virtual {}
|
||||
|
||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||
pub struct Physical {}
|
||||
impl CoordinateSpace for Physical {}
|
||||
|
||||
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||
pub struct Coord8<S: CoordinateSpace> {
|
||||
x: u8,
|
||||
@ -107,7 +103,6 @@ pub struct Coord8<S: CoordinateSpace> {
|
||||
}
|
||||
|
||||
pub type VirtualCoordinates = Coordinates<u8, Virtual>;
|
||||
pub type PhysicalCoordinates = Coordinates<usize, Physical>;
|
||||
|
||||
#[derive(PartialEq, Eq, Copy, Clone, Debug, PartialOrd)]
|
||||
pub struct Rectangle<CoordData: CoordLimits<Data = CoordData>, Space: CoordinateSpace> {
|
||||
|
Reference in New Issue
Block a user