pub trait SintTraits: IntTraits {
const OVERFLOWING_ADD: &'static str;
const OVERFLOWING_SUB: &'static str;
const DIFF: &'static str;
const UNSIGNED_INT_TYPE: GenericTypeId;
}
Expand description
Trait for implementing signed integers.
Required Associated Constants§
Sourceconst OVERFLOWING_ADD: &'static str
const OVERFLOWING_ADD: &'static str
The generic libfunc id for addition.
Sourceconst OVERFLOWING_SUB: &'static str
const OVERFLOWING_SUB: &'static str
The generic libfunc id for subtraction.
Sourceconst DIFF: &'static str
const DIFF: &'static str
The generic libfunc id for difference of signed integers, logically equivalent to subtraction of unsigned integers.
Sourceconst UNSIGNED_INT_TYPE: GenericTypeId
const UNSIGNED_INT_TYPE: GenericTypeId
The generic type id of the equivalent unsigned integer type.
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.