MCPcopy Index your code
hub / github.com/erans/pgsqlite / StringOptimized

Interface StringOptimized

src/optimization/string_utils.rs:180–186  ·  view source on GitHub ↗

Trait for optimized string operations

Source from the content-addressed store, hash-verified

178
179/// Trait for optimized string operations
180pub trait StringOptimized {
181 /// Convert to an optimized Cow<str>
182 fn to_optimized_string(&self) -> Cow<'_, str>;
183
184 /// Convert to owned string only if necessary
185 fn to_string_if_needed(&self) -> Cow<'_, str>;
186}
187
188impl StringOptimized for str {
189 fn to_optimized_string(&self) -> Cow<'_, str> {

Callers

nothing calls this directly

Implementers 1

string_utils.rssrc/optimization/string_utils.rs

Calls

no outgoing calls

Tested by

no test coverage detected