macro_rules! inline_dyn {
($trait:path $(: $($_arg:ident),*)?; $e:expr) => { ... };
}
Attempt to construct a new InlineDyn
for the specified trait containing the given value.
use core::fmt::Debug;
use inline_dyn::{fmt::InlineDynDebug, inline_dyn};
let val: InlineDynDebug = inline_dyn![Debug; 42usize].unwrap();
assert_eq!(format!("{:?}", val), "42");