[][src]Trait linux::util::int::Int

pub trait Int: Copy {
    fn negative(self) -> bool;
fn cast_i64(self) -> i64;
fn div_rem(self, other: Self) -> (Self, Self)
    where
        Self: Sized
; }

Integers.

Required methods

fn negative(self) -> bool

Returns whether the value is negative.

fn cast_i64(self) -> i64

Casts the value to an i64 and possibly discards significant bits.

= Remarks

For example, u64::MAX.cast_i64() == -1.

fn div_rem(self, other: Self) -> (Self, Self) where
    Self: Sized

Loading content...

Implementations on Foreign Types

impl Int for u8[src]

impl Int for u16[src]

impl Int for u32[src]

impl Int for u64[src]

impl Int for u128[src]

impl Int for usize[src]

impl Int for i8[src]

impl Int for i16[src]

impl Int for i32[src]

impl Int for i64[src]

impl Int for i128[src]

impl Int for isize[src]

Loading content...

Implementors

Loading content...