Trait ClampUtils

Source
pub trait ClampUtils {
    // Required method
    fn clamp_to(self, min: Self, max: Self) -> Self;
}

Required Methods§

Source

fn clamp_to(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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ClampUtils for i32

Source§

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

Implementors§