I have the following struct and would like to compare its instances in unit tests:
#[derive(PartialEq, Debug)]
pub struct InlineSequence {
pub inline_vec: Vec<Box<dyn Inline>>,
}
I have found a solution but it seems quite complex: rust - How to test for equality between trait objects? - Stack Overflow
I’m wondering if there is a simpler solution.