[][src]Trait rysk_core::register::Integer

pub trait Integer {
    fn add(self, other: Self) -> Self;
fn sub(self, other: Self) -> Self;
fn shl(self, other: Self) -> Self;
fn shr(self, other: Self) -> Self;
fn div(self, other: Self) -> Self;
fn rem(self, other: Self) -> Self;
fn lt(self, other: Self) -> bool;
fn gte(self, other: Self) -> bool;
fn eq(self, other: Self) -> bool;
fn neq(self, other: Self) -> bool;
fn and(self, other: Self) -> Self;
fn or(self, other: Self) -> Self;
fn xor(self, other: Self) -> Self;
fn not(self) -> Self; }

An integer type which can apply operations as specified by the ISA No panic shall occur from any method

Required methods

fn add(self, other: Self) -> Self

fn sub(self, other: Self) -> Self

fn shl(self, other: Self) -> Self

fn shr(self, other: Self) -> Self

fn div(self, other: Self) -> Self

fn rem(self, other: Self) -> Self

fn lt(self, other: Self) -> bool

fn gte(self, other: Self) -> bool

fn eq(self, other: Self) -> bool

fn neq(self, other: Self) -> bool

fn and(self, other: Self) -> Self

fn or(self, other: Self) -> Self

fn xor(self, other: Self) -> Self

fn not(self) -> Self

Loading content...

Implementations on Foreign Types

impl Integer for u32[src]

A trait needs to be implemented on something, so currently just usign the unsigned type

impl Integer for i32[src]

A trait needs to be implemented on something, so currently just usign the unsigned type

impl Integer for u64[src]

A trait needs to be implemented on something, so currently just usign the unsigned type

impl Integer for i64[src]

A trait needs to be implemented on something, so currently just usign the unsigned type

impl Integer for usize[src]

A trait needs to be implemented on something, so currently just usign the unsigned type

impl Integer for isize[src]

A trait needs to be implemented on something, so currently just usign the unsigned type

Loading content...

Implementors

Loading content...