Function cuicui_layout::dsl::pct

source ·
pub fn pct(percent: u8) -> Rule
Expand description

Returns Rule::Parent as percent percent of parent size.

Panics

If percent is greater than 100. It would mean this node overflows its parent.