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

Method as_str

crates/core/src/alloc/string.rs:158–160  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

156 /// Same as [`std::string::String::as_str`].
157 #[inline]
158 pub const fn as_str(&self) -> &str {
159 self.inner.as_str()
160 }
161
162 /// Same as [`std::string::String::reserve`] but returns an error on
163 /// allocation failure.

Callers 4

replace_pointer_typeFunction · 0.45
parseMethod · 0.45
from_format_argsMethod · 0.45
parseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected