Skip to main content

Join

Trait Join 

Source
pub trait Join {
    // Required method
    fn join(&self, sep: &str) -> String;
}
Expand description

Join a slice of Value into a single String using sep as separator.

This is a convenience used by handlers when composing user-visible messages from an array of previously parsed Value arguments.

Required Methods§

Source

fn join(&self, sep: &str) -> String

Join the display representation of self using sep.

§Arguments
  • self - The slice of Value items to join.
  • sep - Separator string inserted between each item’s display representation.
§Returns

A String containing each element’s Display output separated by sep.

Implementations on Foreign Types§

Source§

impl Join for [Value<'_>]

Source§

fn join(&self, sep: &str) -> String

Implementors§