use std::{any::Any, fmt::Debug};
pub struct PrettyAny(pub Box<dyn Any + Send>);
impl Debug for PrettyAny {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
if let Some(str) = self.0.downcast_ref::<&str>() {
return f.write_str(str);
}
if let Some(str) = self.0.downcast_ref::<String>() {
return f.write_str(str);
}
return self.0.fmt(f);
}
}