pub trait Signed:
Sized
+ Copy
+ Neg<Output = Self>
+ Shr<u32, Output = Self>
+ Shl<u32, Output = Self>
+ BitXor<Self, Output = Self> {
type Unsigned: Unsigned;
const BITS: u32;
// Required method
fn unsigned(self) -> Self::Unsigned;
}
Expand description
Trait that encodes common behaviors of signed numbers.
Required Associated Constants§
Required Associated Types§
Required Methods§
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.