Type erasure and dyn lifetime in a NonNull/Box struct field
I'm new to Rust, and I am trying to understand dyn object lifetimes when inside a Box or NonNull. My goal is to write an adapter for a C API. I have a few C struct types: #[repr(C)] struct ConcreteA { // generated by…