MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / truncate

Method truncate

crates/core/src/alloc/vec.rs:167–169  ·  view source on GitHub ↗

Same as [`std::vec::Vec::truncate`].

(&mut self, len: usize)

Source from the content-addressed store, hash-verified

165
166 /// Same as [`std::vec::Vec::truncate`].
167 pub fn truncate(&mut self, len: usize) {
168 self.inner.truncate(len);
169 }
170
171 /// Same as [`std::vec::Vec::resize`] but returns an error on allocation
172 /// failure.

Callers 15

popnMethod · 0.45
pop_stack_shapeMethod · 0.45
restore_checkpointMethod · 0.45
parse_sourceFunction · 0.45
resizeMethod · 0.45
fd_readMethod · 0.45
fd_readdirMethod · 0.45
path_readlinkMethod · 0.45
open_atMethod · 0.45
receive_p3Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected