Skip to main content

string

Function string 

Source
pub fn string(
    text: &str,
    std: Std,
    target: &TargetInfo,
) -> Result<StringLiteral, LiteralError>
Expand description

Converts the spelling of a string literal into its elements.

ยงErrors

LiteralError, for a spelling that is not a string literal or that holds an escape that is not one.