Trait malachite_base::num::conversion::traits::IsInteger

source ·
pub trait IsInteger {
    // Required method
    fn is_integer(self) -> bool;
}
Expand description

Determines whether a number is an integer.

Required Methods§

Implementations on Foreign Types§

source§

impl IsInteger for f32

source§

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.

source§

impl IsInteger for f64

source§

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.

source§

impl IsInteger for i8

source§

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.

source§

impl IsInteger for i16

source§

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.

source§

impl IsInteger for i32

source§

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.

source§

impl IsInteger for i64

source§

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.

source§

impl IsInteger for i128

source§

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.

source§

impl IsInteger for isize

source§

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.

source§

impl IsInteger for u8

source§

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.

source§

impl IsInteger for u16

source§

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.

source§

impl IsInteger for u32

source§

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.

source§

impl IsInteger for u64

source§

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.

source§

impl IsInteger for u128

source§

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.

source§

impl IsInteger for usize

source§

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.

Implementors§