[][src]Trait crndm::convert::PFrom

pub trait PFrom<T, A: MemPool> {
    pub fn pfrom(_: T, j: &Journal<A>) -> Self;
}

An equivalent to From for persistent memory which requires a Journal to operate

Required methods

pub fn pfrom(_: T, j: &Journal<A>) -> Self[src]

Loading content...

Implementors

impl<A: MemPool, '_> PFrom<&'_ str, A> for String<A>[src]

impl<A: MemPool, '_> PFrom<&'_ str, A> for Vec<u8, A>[src]

impl<T: PSafe + PClone<A>, A: MemPool, '_> PFrom<Ref<'_, T, A>, A> for LogRefCell<T, A>[src]

pub fn pfrom(other: Ref<'_, T, A>, j: &Journal<A>) -> Self[src]

Crates a new LogRefCell and drops the Ref

After calling this function, the Ref won't be available anymore. It will be possible to borrow the LogRefCell mutably. The new LogRefCell has a new location with the same data.

impl<T: PSafe + PClone<A>, A: MemPool, '_> PFrom<RefMut<'_, T, A>, A> for LogRefCell<T, A>[src]

pub fn pfrom(other: RefMut<'_, T, A>, j: &Journal<A>) -> Self[src]

Crates a new LogRefCell and drops the Ref

After calling this function, the Ref won't be available anymore. It will be possible to borrow the LogRefCell mutably. The new LogRefCell has a new location with the same data.

impl<T: PSafe, A: MemPool> PFrom<Box<[T], Global>, A> for Vec<T, A>[src]

impl<T: PSafe, A: MemPool> PFrom<T, A> for LogRefCell<T, A>[src]

pub fn pfrom(value: T, j: &Journal<A>) -> Self[src]

Crates a new LogRefCell

impl<T: Clone + PSafe, A: MemPool, '_> PFrom<&'_ [T], A> for Vec<T, A>[src]

impl<T: Clone + PSafe, A: MemPool, '_> PFrom<&'_ mut [T], A> for Vec<T, A>[src]

Loading content...