mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-30 14:32:01 +00:00
feat(layout): Add default impl for Position (#869)
This commit is contained in:
parent
6e76729ce8
commit
736605ec88
@ -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
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user