[library] Consolidate start/end edge code in TwoWayView