Skip to main content

Scalar

Trait Scalar 

Source
pub trait Scalar:
    RudaPrimitive<Scalar = Self, Size = Const<1>>
    + Default
    + IntoRuntime
    + Debug { }
Expand description

Marker trait for scalar primitives. Should be implemented for all scalar RudaPrimitives, but not for Vector or non-standard primitives like Barrier. Alternatively, treat these as types that can be stored in a [Vector]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Scalar for bf16

Source§

impl Scalar for bool

Source§

impl Scalar for f16

Source§

impl Scalar for f32

Source§

impl Scalar for f64

Source§

impl Scalar for i8

Source§

impl Scalar for i16

Source§

impl Scalar for i32

Source§

impl Scalar for i64

Source§

impl Scalar for isize

Source§

impl Scalar for u8

Source§

impl Scalar for u16

Source§

impl Scalar for u32

Source§

impl Scalar for u64

Source§

impl Scalar for usize

Implementors§