forky_core 0.2.0

Rust Utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use extend::ext;

#[ext]
pub impl String {
	fn push_string(&mut self, str: &String) -> &Self {
		self.push_str(str.as_str());
		self
	}
	fn push_str_line(&mut self, str: &str) -> &Self {
		self.push_str(str);
		self.push('\n');
		self
	}
}