diff --git a/Cargo.toml b/Cargo.toml index f73f34ca..f628a082 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "euclid" -version = "0.11.2" +version = "0.11.3" authors = ["The Servo Project Developers"] description = "Geometry primitives" documentation = "https://docs.rs/euclid/" diff --git a/src/point.rs b/src/point.rs index 8e6986a4..6239fbe5 100644 --- a/src/point.rs +++ b/src/point.rs @@ -254,7 +254,7 @@ impl TypedPoint2D { /// When casting from floating point points, it is worth considering whether /// to `round()`, `ceil()` or `floor()` before the cast in order to obtain /// the desired conversion behavior. - pub fn to_usize(&self) -> TypedPoint2D { + pub fn to_uint(&self) -> TypedPoint2D { self.cast().unwrap() } @@ -517,7 +517,7 @@ impl TypedPoint3D { /// When casting from floating point points, it is worth considering whether /// to `round()`, `ceil()` or `floor()` before the cast in order to obtain /// the desired conversion behavior. - pub fn to_usize(&self) -> TypedPoint3D { + pub fn to_uint(&self) -> TypedPoint3D { self.cast().unwrap() } @@ -756,7 +756,7 @@ impl TypedPoint4D { /// When casting from floating point points, it is worth considering whether /// to `round()`, `ceil()` or `floor()` before the cast in order to obtain /// the desired conversion behavior. - pub fn to_usize(&self) -> TypedPoint4D { + pub fn to_uint(&self) -> TypedPoint4D { self.cast().unwrap() } diff --git a/src/rect.rs b/src/rect.rs index 6d759b17..835c1b50 100644 --- a/src/rect.rs +++ b/src/rect.rs @@ -404,7 +404,7 @@ impl TypedRect { /// When casting from floating point rectangles, it is worth considering whether /// to `round()`, `round_in()` or `round_out()` before the cast in order to /// obtain the desired conversion behavior. - pub fn to_usize(&self) -> TypedRect { + pub fn to_uint(&self) -> TypedRect { self.cast().unwrap() } diff --git a/src/size.rs b/src/size.rs index 0a97e4ae..3b5288fa 100644 --- a/src/size.rs +++ b/src/size.rs @@ -204,7 +204,7 @@ impl TypedSize2D { /// When casting from floating point sizes, it is worth considering whether /// to `round()`, `ceil()` or `floor()` before the cast in order to obtain /// the desired conversion behavior. - pub fn to_usize(&self) -> TypedSize2D { + pub fn to_uint(&self) -> TypedSize2D { self.cast().unwrap() }