recallable 0.2.0

Traits (`Recallable`, `Recall`, `TryRecall`) and macros for defining Memento pattern types and their state restoration behaviors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use core::marker::PhantomData;
use recallable::Recallable;

#[derive(Recallable)]
struct MultiBorrowed<'a> {
    a: &'a str,
    b: Vec<&'a u8>,
    marker: PhantomData<&'a ()>,
}

fn main() {}