Skip to main content

cursor_to_u8

Function cursor_to_u8 

Source
pub const fn cursor_to_u8(v: StyleCursor) -> u8
Expand description

StyleCursor <-> 5-bit code. Default (the CSS initial value) is 0 so an unset node decodes to it for free, and an out-of-range code falls back to it rather than panicking.