Skip to content
/ s-macro Public

A basic Rust library for conveniently making a String

License

Notifications You must be signed in to change notification settings

zemja/s-macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s-macro

A basic Rust library for conveniently making a String. Like so:

use s_macro::s;

assert!(s!()                   == String::new());
assert!(s!("hello, world")     == String::from("hello, world"));
assert!(s!(123 + 321)          == format!("{}", 123 + 321));

let world = "world";
assert!(s!("hello, {}", world) == format!("hello, {}", world));
assert!(s!("hello, {world}")   == format!("hello, {world}"));

About

A basic Rust library for conveniently making a String

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages