Skip to main content

Integer

Trait Integer 

Source
pub trait Integer: Primitive + PrimInt {
    const DTYPE: DataType;

    // Provided method
    fn safe_clamp(self, min: Self, max: Self) -> Self { ... }
}

Required Associated Constants§

Provided Methods§

Source

fn safe_clamp(self, min: Self, max: Self) -> Self

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 Integer for i8

Source§

const DTYPE: DataType = DataType::Int8

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Source§

impl Integer for i16

Source§

const DTYPE: DataType = DataType::Int16

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Source§

impl Integer for i32

Source§

const DTYPE: DataType = DataType::Int32

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Source§

impl Integer for i64

Source§

const DTYPE: DataType = DataType::Int64

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Source§

impl Integer for i128

Source§

const DTYPE: DataType = DataType::Int128

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Source§

impl Integer for u8

Source§

const DTYPE: DataType = DataType::UInt8

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Source§

impl Integer for u16

Source§

const DTYPE: DataType = DataType::UInt16

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Source§

impl Integer for u32

Source§

const DTYPE: DataType = DataType::UInt32

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Source§

impl Integer for u64

Source§

const DTYPE: DataType = DataType::UInt64

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Source§

impl Integer for u128

Source§

const DTYPE: DataType = DataType::UInt128

Source§

fn safe_clamp(self, min: Self, max: Self) -> Self

Implementors§