mol_core/
util.rs

1pub trait ToBox {
2  fn to_box(self) -> Box<Self>
3  where
4    Self: Sized,
5  {
6    Box::new(self)
7  }
8}