Created
July 11, 2018 05:14
-
-
Save slyphon/835d13afd1ece1f859ca9ee14d0db6bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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