rune::modules::string

Function module

Source
pub fn module() -> Result<Module, ContextError>
Expand description

Strings.

Strings in Rune are declared with the literal "string" syntax, but can also be interacted with through the fundamental String type.

let string1 = "Hello";
let string2 = String::new();
string2.push_str("Hello");

assert_eq!(string1, string2);