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

Add some helpers to Rect #50

Merged
merged 1 commit into from Sep 29, 2014
Merged

Add some helpers to Rect #50

merged 1 commit into from Sep 29, 2014

Conversation

@mrobinson
Copy link
Member

mrobinson commented Sep 26, 2014

These will be used in rust-layers to simplify some things.

src/rect.rs Outdated
pub fn max_y(&self) -> T { self.origin.y + self.size.height }

#[inline]
pub fn min_y(&self) -> T { self.origin.y.clone() }

This comment has been minimized.

@zwarich

zwarich Sep 26, 2014

Contributor

The prevailing style in our code is to write functions on multiple lines, even if they fit on a single one.

This comment has been minimized.

@mrobinson

mrobinson Sep 26, 2014

Author Member

Thanks. Fixed.

These will be used in rust-layers to simplify some things.
@mrobinson mrobinson force-pushed the mrobinson:helpers branch from 58ad6fd to 09fee07 Sep 26, 2014
zwarich pushed a commit that referenced this pull request Sep 29, 2014
Add some helpers to Rect
@zwarich zwarich merged commit 90add8d into servo:master Sep 29, 2014
@mrobinson mrobinson deleted the mrobinson:helpers branch Sep 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.