Skip to content

Instantly share code, notes, and snippets.

@slyphon
Created July 11, 2018 05:14
Show Gist options
  • Save slyphon/835d13afd1ece1f859ca9ee14d0db6bb to your computer and use it in GitHub Desktop.
Save slyphon/835d13afd1ece1f859ca9ee14d0db6bb to your computer and use it in GitHub Desktop.
extern crate log;
use log::{Record,Metadata};
use std::boxed::Box;
/*
pub struct Record<'a> {
metadata: Metadata<'a>,
args: fmt::Arguments<'a>,
module_path: Option<&'a str>,
file: Option<&'a str>,
line: Option<u32>,
}
pub struct Metadata<'a> {
level: Level,
target: &'a str,
}
*/
fn main() {
let rec = Record{/* stuff */}
let r2 = Box::new(&rec);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment