1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

use crate::stm::Journal;
use crate::alloc::MemPool;

/// An equivalent to [`From`] for persistent memory which requires a [`Journal`]
/// to operate
/// 
/// [`Journal`]: ../stm/journal/struct.Journal.html
pub trait PFrom<T, A: MemPool> {
    fn pfrom(_: T, j: &Journal<A>) -> Self;
}