Trait tinychain::scalar::NumberClass[]

pub trait NumberClass: Default + Into<NumberType> + Ord + Send + Display {
    type Instance: NumberInstance;
    pub fn size(self) -> usize;
pub fn one(&self) -> Self::Instance;
pub fn zero(&self) -> Self::Instance; }

Defines common properties of numeric types supported by Number.

Associated Types

Loading content...

Required methods

pub fn size(self) -> usize

pub fn one(&self) -> Self::Instance

pub fn zero(&self) -> Self::Instance

Loading content...

Implementors

impl NumberClass for ComplexType

type Instance = Complex

impl NumberClass for FloatType

type Instance = Float

impl NumberClass for IntType

type Instance = Int

impl NumberClass for NumberType

type Instance = Number

impl NumberClass for UIntType

type Instance = UInt

impl NumberClass for BooleanType

type Instance = Boolean

Loading content...