Trait JoinConjunction

Source
pub trait JoinConjunction<'own> {
    // Required method
    fn join_conjunction(&'own self, conjunction: &str) -> String;
}
Expand description

Join with conjunction.

Required Methods§

Source

fn join_conjunction(&'own self, conjunction: &str) -> String

Join iterated strings as human-readable in English with a conjunction and an Oxford comma.

Examples:

  • one
  • one or two
  • one, two, or three
  • one, two, three, or four

Implementors§

Source§

impl<'own, IterableT, ItemT> JoinConjunction<'own> for IterableT
where ItemT: 'own + AsRef<str>, &'own IterableT: 'own + IntoIterator<Item = ItemT>,