ChompInPlace

Trait ChompInPlace 

Source
pub trait ChompInPlace {
    // Required method
    fn chomp(&mut self);
}
Expand description

Trait for specifying how to remove (in-place) the trailing newline characters (\r, \n).

Required Methods§

Source

fn chomp(&mut self)

Remove the trailing newline characters from the string.

Implementations on Foreign Types§

Source§

impl ChompInPlace for String

Source§

fn chomp(&mut self)

Implementors§