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.

Object Safety§

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§