Struct joinery::NoSeparator[][src]

pub struct NoSeparator;

Zero-size type representing the empty separator.

This struct can be used as a separator in cases where you simply want to join the elements of a separator without any elements between them.

See also the join_concat method.

Examples

use joinery::{Joinable, NoSeparator};

let parts = (0..10);
let join = parts.join_with(NoSeparator);
assert_eq!(join.to_string(), "0123456789");

New in 1.1.0

Trait Implementations

impl Debug for NoSeparator
[src]

Formats the value using the given formatter. Read more

impl Clone for NoSeparator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for NoSeparator
[src]

Formats the value using the given formatter. Read more

impl Separator for NoSeparator
[src]

Combine a Separator with a Joinable to create a Join.

Auto Trait Implementations

impl Send for NoSeparator

impl Sync for NoSeparator