cushy

Trait FitMeasuredSize

Source
pub trait FitMeasuredSize {
    // Required method
    fn fit_measured<Unit>(self, measured: Size<Unit>) -> Size<UPx>
       where Unit: IntoUnsigned<Unsigned = UPx>;
}
Expand description

An extension trait for Size<ConstraintLimit>.

Required Methods§

Source

fn fit_measured<Unit>(self, measured: Size<Unit>) -> Size<UPx>
where Unit: IntoUnsigned<Unsigned = UPx>,

Returns the result of calling ConstraintLimit::fit_measured for each matching component in self and measured.

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 FitMeasuredSize for Size<ConstraintLimit>

Source§

fn fit_measured<Unit>(self, measured: Size<Unit>) -> Size<UPx>
where Unit: IntoUnsigned<Unsigned = UPx>,

Implementors§