Skip to main content

Integer

Trait Integer 

Source
pub trait Integer: Primitive + PrimInt {
    // Provided method
    fn safe_clamp(self, min: Self, max: Self) -> Self { ... }
}

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§

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

Source§

impl Integer for i16

Source§

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

Source§

impl Integer for i32

Source§

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

Source§

impl Integer for i64

Source§

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

Source§

impl Integer for i128

Source§

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

Source§

impl Integer for u8

Source§

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

Source§

impl Integer for u16

Source§

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

Source§

impl Integer for u32

Source§

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

Source§

impl Integer for u64

Source§

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

Source§

impl Integer for u128

Source§

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

Implementors§