taffy::style_helpers

Trait 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

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.

Implementors§