Skip to content

Commit 7c9afcc

Browse files
author
Dániel Buga
committed
Make RMode methods actually accessible
1 parent 37e6543 commit 7c9afcc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/register/fpscr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,25 +268,25 @@ pub enum RMode {
268268
impl RMode {
269269
/// Is Nearest the current rounding mode?
270270
#[inline]
271-
fn is_nearest(self) -> bool {
271+
pub fn is_nearest(self) -> bool {
272272
self == RMode::Nearest
273273
}
274274

275275
/// Is Plus Infinity the current rounding mode?
276276
#[inline]
277-
fn is_plus_infinity(self) -> bool {
277+
pub fn is_plus_infinity(self) -> bool {
278278
self == RMode::PlusInfinity
279279
}
280280

281281
/// Is Minus Infinity the current rounding mode?
282282
#[inline]
283-
fn is_minus_infinity(self) -> bool {
283+
pub fn is_minus_infinity(self) -> bool {
284284
self == RMode::MinusInfinity
285285
}
286286

287287
/// Is Zero the current rounding mode?
288288
#[inline]
289-
fn is_zero(self) -> bool {
289+
pub fn is_zero(self) -> bool {
290290
self == RMode::Zero
291291
}
292292
}

0 commit comments

Comments
 (0)