fix(out): impl Debug for XY, WH, XYWH
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
same mf who else 2026-02-20 00:59:49 +02:00
parent 090546b2d6
commit ce2eeaee7f

View file

@ -6,7 +6,7 @@ use crate::*;
/// let xy: XY<u16> = XY(0, 0);
/// ```
#[cfg_attr(test, derive(Arbitrary))]
#[derive(Copy, Clone, Default)] pub struct XY<C: Coord>(pub C, pub C);
#[derive(Copy, Clone, Debug, Default)] pub struct XY<C: Coord>(pub C, pub C);
/// A size (Width, Height).
///
@ -14,7 +14,7 @@ use crate::*;
/// let wh: WH<u16> = WH(0, 0);
/// ```
#[cfg_attr(test, derive(Arbitrary))]
#[derive(Copy, Clone, Default)] pub struct WH<C: Coord>(pub C, pub C);
#[derive(Copy, Clone, Debug, Default)] pub struct WH<C: Coord>(pub C, pub C);
/// Point with size.
///
@ -25,7 +25,7 @@ use crate::*;
/// * [ ] TODO: anchor field (determines at which corner/side is X0 Y0)
///
#[cfg_attr(test, derive(Arbitrary))]
#[derive(Copy, Clone, Default)] pub struct XYWH<C: Coord>(pub C, pub C, pub C, pub C);
#[derive(Copy, Clone, Debug, Default)] pub struct XYWH<C: Coord>(pub C, pub C, pub C, pub C);
/// A cardinal direction.
///