struct with reference serialization

This commit is contained in:
Nikolay Volf
2016-04-22 16:37:22 +03:00
parent 04e704603f
commit c97cb5d665
4 changed files with 32 additions and 12 deletions

View File

@@ -14,6 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
#![allow(dead_code, unused_assignments)] // codegen issues
#![allow(dead_code, unused_assignments, unused_variables)] // codegen issues
include!(concat!(env!("OUT_DIR"), "/binary.rs"));

View File

@@ -31,3 +31,8 @@ pub struct DoubleRoot {
pub x2: u64,
pub x3: u32,
}
#[derive(Binary, PartialEq, Debug)]
pub struct ReferenceStruct<'a> {
pub ref_data: &'a u64,
}