MCPcopy Create free account
hub / github.com/ZettaScaleLabs/stabby / new

Method new

stabby-abi/src/alloc/string.rs:19–21  ·  view source on GitHub ↗

Constructs a new string using the default allocator.

()

Source from the content-addressed store, hash-verified

17impl String {
18 /// Constructs a new string using the default allocator.
19 pub const fn new() -> Self {
20 Self { inner: Vec::new() }
21 }
22}
23impl<Alloc: IAlloc> String<Alloc> {
24 /// Constructs a new string using the provided allocator.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected