pub trait IntBase:
Copy
+ Bounded
+ Zero
+ One
+ Eq
+ Ord
+ Default
+ FromStr
+ Display
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self>
+ Rem<Output = Self>
+ AddAssign
+ SubAssign
+ MulAssign
+ DivAssign
+ RemAssign
+ Sum
+ Product {
type Error;
// Required methods
fn div_euclid(self, rhs: Self) -> Self;
fn rem_euclid(self, rhs: Self) -> Self;
fn pow(self, exp: u32) -> Self;
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>;
fn ilog(self, base: Self) -> u32;
fn ilog2(self) -> u32;
fn ilog10(self) -> u32;
}
Expand description
Trait for basic primitive integer operations.
Required Associated Types§
Required Methods§
fn div_euclid(self, rhs: Self) -> Self
fn rem_euclid(self, rhs: Self) -> Self
fn pow(self, exp: u32) -> Self
fn from_str_radix(src: &str, radix: u32) -> Result<Self, Self::Error>
fn ilog(self, base: Self) -> u32
fn ilog2(self) -> u32
fn ilog10(self) -> u32
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.