Skip to content

Instantly share code, notes, and snippets.

View bojand's full-sized avatar
💭
I may be slow to respond.

Bojan bojand

💭
I may be slow to respond.
View GitHub Profile
@bojand
bojand / main.rs
Created July 17, 2020 01:54
Rust Struct Lifetime
#![allow(unused)]
use std::fmt;
#[derive(Copy, Clone)]
pub struct Type<'a> {
mime_type: &'a str,
}
impl<'a> Type<'a> {