Trait layout_2020::style_ext::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

Object Safety§

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§