Trait Component

Source
pub trait Component:
    Copy
    + Debug
    + Default
    + PartialEq
    + PartialOrd
    + Send
    + Sized
    + Sync
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self> { }
Available on crate feature vector only.
Expand description

Components of numeric vectors.

All components must be Copy + Sized types which support a minimal set of arithmetic operations (Add, Sub, Mul, Div), as well as Default, PartialEq and PartialOrd.

This trait is impl’d for the following primitive types:

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.

Implementations on Foreign Types§

Source§

impl Component for f32

Source§

impl Component for i8

Source§

impl Component for i16

Source§

impl Component for i32

Source§

impl Component for u8

Source§

impl Component for u16

Source§

impl Component for u32

Implementors§