pub trait BaseOps: Copy {
type U;
const NUMBITS: u8;
const MINVAL: Self;
const MAXVAL: Self;
// Required methods
fn from_u8(v: u8) -> Self;
fn from_unsigned(v: Wrapping<Self::U>) -> Self;
fn to_unsigned(&self) -> Wrapping<Self::U>;
fn fls(&self) -> u8;
}Expand description
Internal trait for basic operations on the output type.
Required Associated Constants§
Required Associated Types§
Required Methods§
Sourcefn from_unsigned(v: Wrapping<Self::U>) -> Self
fn from_unsigned(v: Wrapping<Self::U>) -> Self
Convert a wrapping unsigned to a bit identical Self.
Sourcefn to_unsigned(&self) -> Wrapping<Self::U>
fn to_unsigned(&self) -> Wrapping<Self::U>
Convert self to a bit identical wrapping unsigned.
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.