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
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:
this library
Thank you