layout_2020::style_ext

Trait Clamp

Source
pub(crate) trait Clamp: Sized {
    // Required methods
    fn clamp_below_max(self, max: Option<Self>) -> Self;
    fn clamp_between_extremums(self, min: Self, max: Option<Self>) -> Self;
}

Required Methods§

Source

fn clamp_below_max(self, max: Option<Self>) -> Self

Source

fn clamp_between_extremums(self, min: Self, max: Option<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 Clamp for Au

Source§

fn clamp_below_max(self, max: Option<Self>) -> Self

Source§

fn clamp_between_extremums(self, min: Self, max: Option<Self>) -> Self

Implementors§