pub async fn segment_end( exec_state: &mut ExecState, args: Args, ) -> Result<KclValue, KclError>
Returns the point at the end of the given segment.