-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hello,
I'd like to specify lifetimes for a message. Manually implementing them works fine, so this is something the parser could support. See this reference
how it looks if done manually:
pub struct DropItem<'a> {
bang: &'a mut Bang,
}
pub enum WeightMessages<'a> {
DropItem(DropItem<'a>),
TakeItem(TakeItem),
}
this library
pub struct DropItem<'a> {
bang: &'a mut Bang,
}
transitions!(Weight,
[
(IsTaken, DropItem<'a>) => IsDropped,
(IsDropped, DropItem<'a>) => IsDropped,
(IsDropped, TakeItem) => IsTaken,
(IsTaken, TakeItem) => IsTaken
]
);
Thank you
Metadata
Metadata
Assignees
Labels
No labels