Trait number_general::NumberClass[][src]

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

Defines common properties of numeric types supported by Number.

Associated Types

Loading content...

Required methods

fn size(self) -> usize[src]

fn one(&self) -> Self::Instance[src]

fn zero(&self) -> Self::Instance[src]

Loading content...

Implementors

impl NumberClass for ComplexType[src]

type Instance = Complex

impl NumberClass for FloatType[src]

type Instance = Float

impl NumberClass for IntType[src]

type Instance = Int

impl NumberClass for NumberType[src]

type Instance = Number

impl NumberClass for UIntType[src]

type Instance = UInt

impl NumberClass for BooleanType[src]

type Instance = Boolean

Loading content...