pub trait TypeSet: TypeSet + PartialEq{
type SignedInteger: ValueType;
// Required method
fn to_signed(v: Self::Integer) -> Result<Self::SignedInteger, OperatorError>;
}Expand description
Defines numeric types in expressions.
Required Associated Types§
Sourcetype SignedInteger: ValueType
type SignedInteger: ValueType
The type of signed integers in this type set.
Required Methods§
Sourcefn to_signed(v: Self::Integer) -> Result<Self::SignedInteger, OperatorError>
fn to_signed(v: Self::Integer) -> Result<Self::SignedInteger, OperatorError>
Converts an unsigned integer into a signed integer.
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.