Trait wallswitch::PrintWithoutBrackets
source · pub trait PrintWithoutBrackets {
// Required method
fn print_without_brackets(&self, join: &str) -> String;
}Expand description
Print Extension with Display
Required Methods§
sourcefn print_without_brackets(&self, join: &str) -> String
fn print_without_brackets(&self, join: &str) -> String
Print Slice [T] without brackets
Example:
use wallswitch::PrintWithoutBrackets;
let vector = vec![1, 2, 3, 4];
let string = vector.print_without_brackets(", ");
assert_eq!(string, "1, 2, 3, 4");