Skip to content

Instantly share code, notes, and snippets.

View sebastianfrelle's full-sized avatar

Sebastian Frelle Koch sebastianfrelle

  • Aarhus, Denmark
View GitHub Profile

{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Exercise 1\n", "\n", "## Part 2\n", "\n",

@sebastianfrelle
sebastianfrelle / greeting.rs
Last active August 22, 2019 11:11
Greeting between two people
trait Greetable {
fn greeting_for_other(&self, other: &Self) -> String;
}
struct Person<'a> {
name: &'a str,
age: u8,
}
impl<'a> Greetable for Person<'a> {