pub struct NoSeparator;
Expand description
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::JoinableIterator;
use joinery::separators::NoSeparator;
let parts = (0..10);
let join = parts.join_with(NoSeparator);
assert_eq!(join.to_string(), "0123456789");
New in 1.1.0
Trait Implementations§
Source§impl Clone for NoSeparator
impl Clone for NoSeparator
Source§fn clone(&self) -> NoSeparator
fn clone(&self) -> NoSeparator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NoSeparator
impl Debug for NoSeparator
Source§impl Default for NoSeparator
impl Default for NoSeparator
Source§fn default() -> NoSeparator
fn default() -> NoSeparator
Returns the “default value” for a type. Read more
Source§impl Display for NoSeparator
impl Display for NoSeparator
Source§impl Separator for NoSeparator
impl Separator for NoSeparator
impl Copy for NoSeparator
Auto Trait Implementations§
impl Freeze for NoSeparator
impl RefUnwindSafe for NoSeparator
impl Send for NoSeparator
impl Sync for NoSeparator
impl Unpin for NoSeparator
impl UnwindSafe for NoSeparator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more