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§

source

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");

Implementations on Foreign Types§

source§

impl<T> PrintWithoutBrackets for [T]
where T: Display,

Implementors§