Mojo function
get_string_literal_slice
get_string_literal_slice[: Bool, : Origin[$0], //, value: StringSlice[$1]]() -> StringLiteral
Form a string literal from an arbitrary compile-time StringSlice value.
Parameters:
- value (
StringSlice[$1]
): The value to convert to StringLiteral.
Returns:
The string value as a StringLiteral.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!