Trait agb::fixnum::FixedWidthUnsignedInteger
source · pub trait FixedWidthUnsignedInteger: Sized + Copy + PartialOrd + Ord + PartialEq + Eq + Shl<usize, Output = Self> + Shr<usize, Output = Self> + Add<Output = Self> + Sub<Output = Self> + Not<Output = Self> + BitAnd<Output = Self> + Rem<Output = Self> + Div<Output = Self> + Mul<Output = Self> + From<u8> + Debug + Display {
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn ten() -> Self;
fn from_as_i32(v: i32) -> Self;
fn upcast_multiply(a: Self, b: Self, n: usize) -> Self;
}
Expand description
A trait for integers that don’t implement unary negation
Required Methods§
sourcefn from_as_i32(v: i32) -> Self
fn from_as_i32(v: i32) -> Self
Converts an i32 to it’s own representation, panics on failure
sourcefn upcast_multiply(a: Self, b: Self, n: usize) -> Self
fn upcast_multiply(a: Self, b: Self, n: usize) -> Self
Returns (a * b) >> N
Object Safety§
This trait is not object safe.