Trait dfdx::dtypes::Unit

source ·
pub trait Unit: 'static + Copy + Clone + Default + Debug + PartialEq + PartialOrd + Send + Sync + Unpin + SafeZeros {
    const ONE: Self;
}
Expand description

Represents a unit type, but no arithmetic.

Required Associated Constants§

source

const ONE: Self

Implementations on Foreign Types§

source§

impl Unit for i128

source§

const ONE: Self = 1i128

source§

impl Unit for f32

source§

const ONE: Self = 1f32

source§

impl Unit for i16

source§

const ONE: Self = 1i16

source§

impl Unit for u64

source§

const ONE: Self = 1u64

source§

impl Unit for u128

source§

const ONE: Self = 1u128

source§

impl Unit for isize

source§

const ONE: Self = 1isize

source§

impl Unit for u32

source§

const ONE: Self = 1u32

source§

impl Unit for usize

source§

const ONE: Self = 1usize

source§

impl Unit for u16

source§

const ONE: Self = 1u16

source§

impl Unit for f64

source§

const ONE: Self = 1f64

source§

impl Unit for i8

source§

const ONE: Self = 1i8

source§

impl Unit for u8

source§

const ONE: Self = 1u8

source§

impl Unit for bool

source§

const ONE: Self = true

source§

impl Unit for i64

source§

const ONE: Self = 1i64

source§

impl Unit for i32

source§

const ONE: Self = 1i32

Implementors§

source§

impl<F: Unit> Unit for AMP<F>

source§

const ONE: Self = _