pub fn has_trailing_newline(segment: &Segment) -> bool
Check if a segment ends with a Newline (possibly preceded by Whitespace). Used by layout rules (LT07, LT14) to detect newlines absorbed into clause bodies.