MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / set

Method set

src/axis_link.rs:33–38  ·  view source on GitHub ↗

Update the position and half extent, incrementing the version

(&self, position: f64, half_extent: f64)

Source from the content-addressed store, hash-verified

31
32 /// Update the position and half extent, incrementing the version
33 pub fn set(&self, position: f64, half_extent: f64) {
34 let mut inner = self.inner.write().unwrap();
35 inner.position = position;
36 inner.half_extent = half_extent;
37 inner.version = inner.version.wrapping_add(1);
38 }
39
40 /// Get the current version
41 pub(crate) fn version(&self) -> u64 {

Callers 1

update_axis_linksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected