Skip to content

ErisianArchitect/smartstr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartstr is a "smart" string implementation.

A smart string is an optimized string representation for immutable strings that is able to store strings from multiple sources. If the string is 15 characters or less, it can be made inline, meaning that there will be no heap allocation. You can create a SmartStr from a static string, and there also will be no heap allocation. Additionally, you can create a smart string from a Box<str>, Arc<str>, or Rc<str>, and the SmartStr will respect the drop/clone semantics of each.

About

Smart string implementation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages