The std::str documentation is also quite good.
// Create a string from a literal
let hello: &'static str = "Hello!";
let hello2: &str = "Hello!";
The std::str documentation is also quite good.
// Create a string from a literal
let hello: &'static str = "Hello!";
let hello2: &str = "Hello!";
license: gpl-3.0 | |
border: no | |
height: 900 |
license: gpl-3.0 | |
border: no | |
height: 2000 |
Note: All links to the code are based on a fixed revision, so we can link line numbers. Code might have changed by now, nonetheless use these revisions when doing updates to this document.