[][src]Trait easy_ml::differentiation::Primitive

pub trait Primitive { }

A trait with no methods which is implemented for all primitive types.

Importantly this trait is not implemented for Traces (or Records), to stop the compiler from trying to evaluate nested Traces of Traces or Records of Records as Numeric types. There is no reason to create a Trace of a Trace or Record of a Record, it won't do anything a Trace or Record can't except use more memory.

The boilerplate implementations for primitives is performed with a macro. If a primitive type is missing from this list, please open an issue to add it in.

Implementations on Foreign Types

impl Primitive for u8[src]

impl Primitive for i8[src]

impl Primitive for u16[src]

impl Primitive for i16[src]

impl Primitive for u32[src]

impl Primitive for i32[src]

impl Primitive for u64[src]

impl Primitive for i64[src]

impl Primitive for u128[src]

impl Primitive for i128[src]

impl Primitive for f32[src]

impl Primitive for f64[src]

impl Primitive for usize[src]

impl Primitive for isize[src]

impl<T: Primitive> Primitive for Wrapping<T>[src]

Loading content...

Implementors

Loading content...