Browse Source

textium: relax ordering constraints on Rect<T>

master
Erin 8 years ago
parent
commit
dde62e4e83
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      textium/src/geometry.rs

+ 1
- 1
textium/src/geometry.rs View File

@ -13,7 +13,7 @@ pub struct Rect<T> {
#[allow(dead_code)]
impl<T> Rect<T>
where T: Copy + Add<Output=T> + Sub<Output=T> + Mul<Output=T>
+ Ord + PartialOrd
+ PartialOrd
{
/// Returns a new rectangle given the upper-left corner and its width + height.
pub fn new(x: T, y: T, w: T, h: T) -> Rect<T> {


Loading…
Cancel
Save