Struct scaly::string::String [] [src]

pub struct String {
    // some fields omitted
}

An immutable string. The contents are stored directly behind the String object itself.

Methods

impl String
[src]

fn from_rust_string<'a>(page: &mut Page, str: String) -> &'a mut String

Converts a Rust string to a Scaly string by allocating the String itself and the bytes.

fn as_rust_string(&self) -> String

Converts a Scaly string to a Rust string