Skip to main content

to_offset

Function to_offset 

Source
pub fn to_offset(l: &Level) -> (&Level, u32)
Expand description

Decompose a level into (base, offset) where level = succ^offset(base).

Strips all Succ wrappers. E.g., succ(succ(param u)) -> (param u, 2).