MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / get

Method get

block/src/qcow/vec_cache.rs:44–49  ·  view source on GitHub ↗
(&self, index: I)

Source from the content-addressed store, hash-verified

42 }
43
44 pub fn get<I>(&self, index: I) -> Option<&<I as SliceIndex<[T]>>::Output>
45 where
46 I: SliceIndex<[T]>,
47 {
48 self.vec.get(index)
49 }
50
51 /// Gets a reference to the underlying vector.
52 pub fn get_values(&self) -> &[T] {

Callers 15

l2_tableMethod · 0.45
set_data_refcountsMethod · 0.45
file_readMethod · 0.45
file_offset_writeMethod · 0.45
update_cluster_addrMethod · 0.45
cluster_allocatedMethod · 0.45
deallocate_clusterMethod · 0.45
try_map_readMethod · 0.45
map_writeMethod · 0.45
update_cluster_addrMethod · 0.45
deallocate_clusterMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected