Skip to main content

format_str

Function format_str 

Source
pub fn format_str<S: AsRef<str>>(parts: &[S]) -> String
Expand description

A debugging or warning message as music21’s common.formatStr makes one: the parts joined by spaces, ending in a newline.

assert_eq!(music21::common::stringtools::format_str(&["test", "1", "2"]), "test 1 2\n");