Struct pretty_trait::Newline
[−]
[src]
pub struct Newline;
An unconditional newline.
Always causes its environment to break.
Examples
Basic usage:
use pretty_trait::{JoinExt, Newline, to_string}; let expected = "\ hello world"; assert_eq!(to_string(&"hello".join(Newline).join("world"), None, 4), expected);
Trait Implementations
impl Clone for Newline
[src]
fn clone(&self) -> Newline
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Newline
[src]
impl Debug for Newline
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more