Skip to main content

spec_string_text

Function spec_string_text 

Source
pub fn spec_string_text(value: &ContractSpecString) -> Result<&str, Error>
Expand description

Decode a spec string as UTF-8 text and validate it as a safe identifier.

Spec strings originate from Rust type and method names. A string containing quotes, backslashes, or whitespace signals a malformed spec and is rejected rather than propagated into generated output.