Mojo function
get_string_literal
get_string_literal[value: String]() -> StringLiteral
Form a string literal from an arbitrary compile-time String value.
Parameters:
- value (
String
): The value to convert to StringLiteral.
Returns:
The string value as a StringLiteral.
get_string_literal[type: Stringable, //, value: type]() -> StringLiteral
Form a string literal from an arbitrary compile-time stringable value.
Parameters:
- type (
Stringable
): The type of the value. - value (
type
): The value to serialize.
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!