fn apply_avar_mappings<T>( avar: Option<&Avar<'_>>, coords: &mut [T], to_fixed: impl Fn(&T) -> Fixed, from_fixed: impl Fn(Fixed) -> T, )