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

Method capacity

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

Source from the content-addressed store, hash-verified

150 /// Same as [`std::string::String::capacity`].
151 #[inline]
152 pub fn capacity(&self) -> usize {
153 self.inner.capacity()
154 }
155
156 /// Same as [`std::string::String::as_str`].
157 #[inline]

Callers 2

into_raw_partsMethod · 0.45
shrink_to_fitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected