1use std::fmt::Display; 2 3#[derive(Debug, Copy, Clone)] 4/// Logger struct used for Display in the ligen crates 5pub struct Logger {} 6 7impl Logger { 8 /// log function for the Logger struct 9 pub fn log<D: Display>(d: D) { 10 println!("{}", d); 11 } 12}