Macro gluon_vm::record_type

source ·
macro_rules! record_type {
    ($($field: ident => $value: ty),* $(,)?) => { ... };
}
Expand description

Creates a Rust type compatible with the type of record_no_decl!

#[macro_use]
extern crate gluon_vm;
// Fields used in `record_type!` needs to be forward declared
field_decl! {x, y}
fn new_vec(x: f64, y: f64) -> record_type!(x => f64, y => f64) {
    record_no_decl!(x => y, y => y)
}