//! Common traits
#[cfg(not(feature ="std"))]usealloc::vec::Vec;/// Common trait for structures serialization
pubtraitSerialize<O = Vec<u8>> {/// Type of serialization error
typeError;/// Try to serialize object
fnserialize(&self)->Result<O, Self::Error>;}