OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

OpticsUnit

OpticsUnit — methods

pub fn symbol(self) -> &'static str

What to print after the number: "°", "mm", or "".

Empty for OpticsUnit::Unknown deliberately. Printing the wrong unit is the defect this exists to fix, so there is no fallback to degrees.

Examples

use optris_sdk::OpticsUnit;

assert_eq!(OpticsUnit::Degrees.symbol(), "°");
assert_eq!(OpticsUnit::Millimetres.symbol(), "mm");
assert_eq!(OpticsUnit::Unknown.symbol(), "");