MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / confidence_float

Method confidence_float

atomic-core/src/change/credit.rs:304–306  ·  view source on GitHub ↗

Get the confidence as a float (0.0 to 1.0).

(&self)

Source from the content-addressed store, hash-verified

302
303 /// Get the confidence as a float (0.0 to 1.0).
304 pub fn confidence_float(&self) -> Option<f32> {
305 self.confidence.map(|c| c as f32 / 100.0)
306 }
307
308 /// Get a display string for the author.
309 pub fn author_display(&self) -> String {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected