Trait taffy::style_helpers::TaffyFitContent

source ·
pub trait TaffyFitContent {
    // Required method
    fn fit_content(argument: LengthPercentage) -> Self;
}
Expand description

Trait to create fit-content(…) values from plain numbers

Required Methods§

source

fn fit_content(argument: LengthPercentage) -> Self

Converts a LengthPercentage into Self

Object Safety§

This trait is not object safe.

Implementors§