Hello everybody!
This is the very first entry in my very own blog. This specific
entry mainly exists to allow me to develop the blog part of my website.
Have a great day!
Testing Area
uiae
uiae
Did you notice this is to test stuff?
uiae
Another one
uiae
Test code
uiae
uiadrtenuidatren
1 | trait Greeter {
2 | fn greet(&self) -> String;
| 3 | }
| 4 |
| 5 | impl Greeter for usize {
| 6 | fn greet(&self) -> String {
| 7 | format!("Hello person {}!", self)
| 8 | }
| 9 | }
| 10 |
| 11 | struct GreetPerson {
12 | name: String
| 13 | }
| 14 |
| 15 | impl Greeter for GreetPerson {
16 | fn greet(&self) -> String {
17 | format!("Hello {}!", self.name)
| 18 | }
| 19 | }
| 20 |
| 21 | fn main() {
22 | let person = GreetPerson {
| 23 | name: "Hugo".to_string()
| 24 | };
| 25 |
| 26 | println!("1: {}\n2: {}", 17.greet(), person.greet());
| 27 | }
| | | | | |