Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have TypedSideOffsets2D derive PartialEq and Copy #154

Merged
merged 1 commit into from Aug 11, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -1,6 +1,6 @@
[package]
name = "euclid"
version = "0.8.1"
version = "0.8.2"
authors = ["The Servo Project Developers"]
description = "Geometry primitives"
documentation = "http://doc.servo.org/euclid/"
@@ -20,7 +20,7 @@ use std::ops::{AddAssign, SubAssign};
use std::marker::PhantomData;
use std::fmt;

#[derive(Clone, Copy, RustcDecodable, RustcEncodable)]
#[derive(Clone, Copy, RustcDecodable, RustcEncodable, PartialEq)]
pub struct UnknownUnit;

/// A one-dimensional distance, with value represented by `T` and unit of measurement `Unit`.
@@ -21,7 +21,7 @@ use heapsize::HeapSizeOf;
/// A group of side offsets, which correspond to top/left/bottom/right for borders, padding,
/// and margins in CSS.
define_vector! {
#[derive(Clone, Debug)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct TypedSideOffsets2D<T, U> {
pub top: T,
pub right: T,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.