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

Method push_str

crates/core/src/alloc/string.rs:192–196  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

190 /// allocation failure.
191 #[inline]
192 pub fn push_str(&mut self, s: &str) -> Result<(), OutOfMemory> {
193 self.reserve(s.len())?;
194 self.inner.push_str(s);
195 Ok(())
196 }
197
198 /// Same as [`std::string::String::into_raw_parts`].
199 pub fn into_raw_parts(mut self) -> (*mut u8, usize, usize) {

Callers 15

update_atMethod · 0.45
update_testFunction · 0.45
generate_display_implMethod · 0.45
begin_blockMethod · 0.45
emitMethod · 0.45
pretty_print_regFunction · 0.45
print_with_stateMethod · 0.45
fence_req_to_stringMethod · 0.45
print_with_stateMethod · 0.45
show_vreg_vectorFunction · 0.45
gen_common_isleFunction · 0.45

Calls 3

OkFunction · 0.85
reserveMethod · 0.45
lenMethod · 0.45

Tested by 4

update_testFunction · 0.36
test_many_call_moduleFunction · 0.36
to_mutFunction · 0.36
try_string_push_strFunction · 0.36