feat(layout): Add default impl for Position (#869)

This commit is contained in:
Josh McKinney 2024-01-24 08:47:29 -08:00 committed by GitHub
parent 6e76729ce8
commit 736605ec88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ use crate::layout::Rect;
/// // position can be converted back into the components when needed
/// let (x, y) = position.into();
/// ```
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Ord, PartialOrd, Hash)]
pub struct Position {
/// The x coordinate of the position
///