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§
fn clamp_below_max(self, max: Option<Self>) -> Self
fn clamp_between_extremums(self, min: Self, max: Option<Self>) -> Self
Object Safety§
This trait is not object safe.