pub async fn segment_length( exec_state: &mut ExecState, args: Args, ) -> Result<KclValue, KclError>
Returns the length of the segment.