Trait 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§