Trait chomp_nl::Chomp
[−]
[src]
pub trait Chomp<'a> { fn chomp(_: Self) -> &'a str; }
Trait for specifying how to remove the trailing newline characters (\r, \n).
Required Methods
fn chomp(_: Self) -> &'a str
Return a string slice that does not contain the trailing newline characters.