Function fit_span

Source
pub fn fit_span<T>(
    src: Span,
    dst: Span,
    p: impl 'static + Pattern<Value = T>,
) -> impl Pattern<Value = T>
Expand description

Fit the src span of the given pattern to the dst span by first adjusting the rate and then shifting the pattern.