MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / get

Method get

splashsurf_lib/src/topology.rs:379–381  ·  view source on GitHub ↗

Returns a reference to the value stored for the given axis

(&self, axis: &DirectedAxis)

Source from the content-addressed store, hash-verified

377
378 /// Returns a reference to the value stored for the given axis
379 pub fn get(&self, axis: &DirectedAxis) -> &T {
380 &self.data[axis.to_usize()]
381 }
382
383 /// Returns a mutable reference to the value stored for the given axis
384 pub fn get_mut(&mut self, axis: &DirectedAxis) -> &mut T {

Callers 15

get_mut_uncheckedMethod · 0.45
half_edgeMethod · 0.45
is_boundary_vertexMethod · 0.45
local_point_index_ofMethod · 0.45
global_point_index_ofMethod · 0.45
global_edge_index_ofMethod · 0.45
has_neighborMethod · 0.45
get_neighborMethod · 0.45
get_neighbor_edgeMethod · 0.45
dropMethod · 0.45

Calls 1

to_usizeMethod · 0.80

Tested by

no test coverage detected