Trait string_join::as_ref::Join[][src]

pub trait Join {
    fn write_join<I: AsRef<str>, W: Write, T: IntoIterator<Item = I>>(
        &self,
        writer: W,
        coll: T
    ) -> Result<usize>; fn join<I: AsRef<str>, T: IntoIterator<Item = I>>(&self, coll: T) -> String { ... } }

This trait brings the join and write_join methods into scope.

Required methods

fn write_join<I: AsRef<str>, W: Write, T: IntoIterator<Item = I>>(
    &self,
    writer: W,
    coll: T
) -> Result<usize>
[src]

Called on the separator, this takes a writer and something that can be turned into an iterator and writes the joined result to the writer.

Loading content...

Provided methods

fn join<I: AsRef<str>, T: IntoIterator<Item = I>>(&self, coll: T) -> String[src]

Called on the separator, this takes something that can be turned into an iterator and produces a heap-allocated string

Loading content...

Implementors

impl<A: AsRef<str>> Join for A[src]

Loading content...