mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
Derive Eq for XY
This commit is contained in:
parent
7df4b06ef8
commit
997895347c
@ -3,7 +3,7 @@ use direction::Orientation;
|
|||||||
use std::iter;
|
use std::iter;
|
||||||
|
|
||||||
/// A generic structure with a value for each axis.
|
/// A generic structure with a value for each axis.
|
||||||
#[derive(Debug,Clone,Copy,PartialEq,Hash)]
|
#[derive(Debug,Clone,Copy,PartialEq,Eq,Hash)]
|
||||||
pub struct XY<T> {
|
pub struct XY<T> {
|
||||||
/// X-axis value
|
/// X-axis value
|
||||||
pub x: T,
|
pub x: T,
|
||||||
|
Loading…
Reference in New Issue
Block a user