MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / get

Method get

src/buffer.rs:39–42  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

37 /// Gets a `&mut T` if it already exists or initializes one with [`Default`].
38 #[cfg(test)]
39 pub(crate) fn get<T: Default + Send + Sync + 'static>(&mut self) -> &mut T {
40 // Safety: T is static.
41 unsafe { self.get_non_static::<T>() }
42 }
43
44 /// Like [`Registry::get`] but can get non-static types.
45 /// # Safety

Callers 9

populateMethod · 0.80
reserveMethod · 0.80
fromMethod · 0.80
reserveMethod · 0.80
reserveMethod · 0.80
reserveMethod · 0.80
reserveMethod · 0.80
reserveMethod · 0.80
reserveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected