withinFn

private val withinFn: (other: Rect, target: Size) -> Position