Skip to content

Instantly share code, notes, and snippets.

View HopperMCS's full-sized avatar

G. F. Hopper HopperMCS

View GitHub Profile
.content1{
}
.content1{
}
.content1{
@HopperMCS
HopperMCS / playground.rs
Created June 3, 2017 01:23 — forked from anonymous/playground.rs
Shared via Rust Playground
struct Triangle {
base: f32,
height: f32
}
trait Area {
fn triangle(&self) -> f32;
}
impl Area for Triangle {
@HopperMCS
HopperMCS / playground.rs
Created June 27, 2017 05:54 — forked from anonymous/playground.rs
Rust code shared from the playground
fn main() {
enum IsGender {
Yes,
No,
}
fn is_gender(is_gender: IsGender) -> String {
match is_gender {
IsGender::Yes => String::from("Status: Is A Gender"),
@HopperMCS
HopperMCS / playground.rs
Created July 1, 2017 03:47 — forked from anonymous/playground.rs
Rust code shared from the playground
enum Gender {
Agender,
}
struct Details {
name: String,
description: String,
sentence: String,
}