Function format_distance_string

Source
pub fn format_distance_string(
    target: &Option<f64>,
    lower: &Option<f64>,
    upper: &Option<f64>,
) -> String
Expand description

Formats a distance string based on target, lower, and upper bounds.

This function creates a formatted string representing distance constraints. If any of the input values are None, default values are used.

§Arguments

  • target - An Option representing the target distance.
  • lower - An Option representing the lower bound of the distance.
  • upper - An Option representing the upper bound of the distance.

§Returns

A String containing the formatted distance values, with one decimal place precision.