We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It might be possible to use ToString to get a register name instead of the RegisterId weirdness that I'm currently using.
RegisterId
Inspired by https://github.com/benashford/rs-es/blob/master/src/units.rs#L315-L329:
impl ToString for DistanceUnit { fn to_string(&self) -> String { match *self { DistanceUnit::Mile => "mi", DistanceUnit::Yard => "yd", DistanceUnit::Feet => "ft", DistanceUnit::Inch => "in", DistanceUnit::Kilometer => "km", DistanceUnit::Meter => "m", DistanceUnit::Centimeter => "cm", DistanceUnit::Millimeter => "mm", DistanceUnit::NauticalMile => "NM" }.to_owned() } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It might be possible to use ToString to get a register name instead of the
RegisterId
weirdness that I'm currently using.Inspired by https://github.com/benashford/rs-es/blob/master/src/units.rs#L315-L329:
The text was updated successfully, but these errors were encountered: