IssueRaiser

Tracking Issue for `int_roundings`

<!-- homu-ignore:start --> *[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/issues/88581)* <!-- homu-ignore:end --> Feature gate: `#![feature(int_roundings)]` This is a tracking issue for the `div_floor`, `div_ceil`, `next_multiple_of`, and `checked_multiple_of` methods on all integer types. ### Public API ```rust impl {integer} { #[unstable] pub const fn div_floor(self, rhs: Self) -> Self; } impl {signed integer} { #[unstable] pub const fn div_ceil(self, rhs: Self) -> Self; #[unstable] pub const fn next_multiple_of(self, rhs: Self) -> Self; #[unstable] pub const fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>; } impl {unsigned integer} { #[stable(since = "1.73.0")] pub const fn div_ceil(self, rhs: Self) -> Self; #[stable(since = "1.73.0")] pub const fn next_multiple_of(self, rhs: Self) -> Self; #[stable(since = "1.73.0")] pub const fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>; } ``` ### Steps / History - https://github.com/rust-lang/rust/pull/88582 - https://github.com/rust-lang/rust/issues/88971 - https://github.com/rust-lang/rust/pull/89184 - https://github.com/rust-lang/rust/pull/90329 - https://github.com/rust-lang/rust/pull/91141 - https://github.com/rust-lang/rust/pull/95359 - https://github.com/rust-lang/rust/pull/94455 ### Unresolved Questions - None yet.

Posted by jhpratt on Sep 2, 2021, 5:24 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

github (Sysadmin)

Tracking Issue for `int_roundings`

jhprattSep 2, 2021, 5:24 AM

<!-- homu-ignore:start --> *[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/issues/88581)* <!-- homu-ignore:end --> Feature gate: `#![feature(int_roundings)]` This is a tracking issue for the `div_floor`, `div_ceil`, `next_multiple_of`, and `checked_multiple_of` methods on all integer types. ### Public API ```rust impl {integer} { #[unstable] pub const fn div_floor(self, rhs: Self) -> Self; } impl {signed integer} { #[unstable] pub const fn div_ceil(self, rhs: Self) -> Self; #[unstable] pub const fn next_multiple_of(self, rhs: Self) -> Self; #[unstable] pub const fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>; } impl {unsigned integer} { #[stable(since = "1.73.0")] pub const fn div_ceil(self, rhs: Self) -> Self; #[stable(since = "1.73.0")] pub const fn next_multiple_of(self, rhs: Self) -> Self; #[stable(since = "1.73.0")] pub const fn checked_next_multiple_of(self, rhs: Self) -> Option<Self>; } ``` ### Steps / History - https://github.com/rust-lang/rust/pull/88582 - https://github.com/rust-lang/rust/issues/88971 - https://github.com/rust-lang/rust/pull/89184 - https://github.com/rust-lang/rust/pull/90329 - https://github.com/rust-lang/rust/pull/91141 - https://github.com/rust-lang/rust/pull/95359 - https://github.com/rust-lang/rust/pull/94455 ### Unresolved Questions - None yet.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue