Skip to main content

db_string

Function db_string 

Source
pub fn db_string(s: &str) -> CoreResult<DbString>
Expand description

Construct an owned DbString from a string slice.

Construction allocates shared string storage guarded only by the IL013 per-string byte cap; there is no global pool, specialized small-string storage, or distinct-string cardinality cap.

ยงErrors

Returns CoreError::StringTooLong if s exceeds MAX_DB_STRING_BYTES (IL013).