Derive Macro FromMap
#[derive(FromMap)]
{
// Attributes available to this derive:
#[FromMapCorePath]
#[FromMapIndex]
}
Available on crate feature
chili
only.Expand description
Derives the FromMap trait.
Note that all fields of the struct need to implement the FromMap trait. It is currently still necessary to specify the type parameter for the FromMap trait.
use cellular_raza_core::backend::chili::{ChannelComm, FromMap};
use cellular_raza_concepts::IndexError;
#[derive(FromMap)]
#[FromMapIndex(usize)]
struct NewCommunicator {
channel_communicator_1: ChannelComm<usize, String>,
channel_communicator_2: ChannelComm<usize, bool>,
}