pub trait JoinConjunction<'own> {
// Required method
fn join_conjunction(&'own self, conjunction: &str) -> String;
}
Expand description
Join with conjunction.
Required Methods§
Sourcefn join_conjunction(&'own self, conjunction: &str) -> String
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