Trait malachite_base::num::conversion::traits::IsInteger
source · [−]pub trait IsInteger {
fn is_integer(self) -> bool;
}
Expand description
Determines whether a number is an integer.
Required Methods
fn is_integer(self) -> bool
Implementations on Foreign Types
sourceimpl IsInteger for u8
impl IsInteger for u8
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for u16
impl IsInteger for u16
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for u32
impl IsInteger for u32
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for u64
impl IsInteger for u64
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for u128
impl IsInteger for u128
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for usize
impl IsInteger for usize
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for i8
impl IsInteger for i8
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for i16
impl IsInteger for i16
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for i32
impl IsInteger for i32
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for i64
impl IsInteger for i64
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for i128
impl IsInteger for i128
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for isize
impl IsInteger for isize
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
For primitive integer types this always returns true
.
$f(x) = \textrm{true}$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for f32
impl IsInteger for f32
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
$f(x) = (x \in \Z)$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl IsInteger for f64
impl IsInteger for f64
sourcefn is_integer(self) -> bool
fn is_integer(self) -> bool
Determines whether a value is an integer.
$f(x) = (x \in \Z)$.
Worst-case complexity
Constant time and additional memory.
Examples
See here.