pub fn val_parser(input: &str) -> IResult<&str, Val>
Expand description
Parser for strings that represent a bevy::ui::Val
.
The syntax is inspired by CSS:
auto
-> Val::Auto12px
-> Val::Px(12.0)12%
-> Val::Percent(12.0)12vw
-> Val::Vw(12.0)12vh
-> Val::Vh(12.0)12vmin
-> Val::VMin(12.0)12vmax
-> Val::VMax(12.0)