MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / cast

Method cast

crates/data-structures/src/slim_slice.rs:185–190  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 /// that `T` is safely exchangeable for `U`.
184 #[inline]
185 fn cast<U: SafelyExchangeable<T>>(self) -> SlimRawSlice<U> {
186 SlimRawSlice {
187 ptr: self.ptr.cast(),
188 len: self.len,
189 }
190 }
191
192 /// Split `self` into a raw pointer and the slice length.
193 #[inline]

Callers 15

eval_user_moduleFunction · 0.80
code_errorFunction · 0.80
get_registered_hooksFunction · 0.80
bench_retrieve_one_pageFunction · 0.80
read_tagFunction · 0.80
nextMethod · 0.80
nextMethod · 0.80
read_from_bytesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected