Skip to content

RustPython/embed-str

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

embed-str: short string embedding for Box<str>

use embed_str::EmbeddingStr;

fn main() {
    let embedded = EmbeddingStr::from("short");
    let _s = embedded.as_str();  // &str

    let boxed = EmbeddingStr::from("long string is longer than limit");
    let _s = embedded.as_str();  // &str
}

About

Short string embedding for Box<str>

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages