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

Method temperature

atomic-core/src/change/provenance/builder.rs:131–134  ·  view source on GitHub ↗

Set temperature (0.0 to 2.0 range, stored as fixed-point).

(mut self, temp: f32)

Source from the content-addressed store, hash-verified

129
130 /// Set temperature (0.0 to 2.0 range, stored as fixed-point).
131 pub fn temperature(mut self, temp: f32) -> Self {
132 self.temperature = Some((temp * 1000.0) as u32);
133 self
134 }
135
136 /// Set timestamp (Unix epoch seconds).
137 pub fn timestamp(mut self, ts: i64) -> Self {

Callers 1

test_provenance_builderFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_provenance_builderFunction · 0.64