Trait TypeSet

Source
pub trait TypeSet: TypeSet + PartialEq
where Self::Integer: ValueType, Self::Float: ValueType,
{ 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§

Source

type SignedInteger: ValueType

The type of signed integers in this type set.

Required Methods§

Source

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.

Implementors§