1 2 3 4 5 6 7 8 9 10 11 12 13
pub use molecule::prelude::{Builder, Entity, Reader}; pub trait Unpack<T> { fn unpack(&self) -> T; } pub trait Pack<T: Entity> { fn pack(&self) -> T; } pub trait PackVec<T: Entity, I: Entity>: IntoIterator<Item = I> { fn pack(self) -> T; }