pub trait PmemUsage where
    Self: Sized
{ fn size_of() -> usize { ... } fn size_of_pmem() -> usize { ... } }
Expand description

Determines how much of the MemPool is used for the trait object.

This is useful for obtaining the size of the referent of the persistent pointers.

Provided Methods

Size of the object on Persistent Memory Assuming that self is not on PM, or considered else were, the size of allocated persistent memory is the sum of all persistent objects pointed by this object.

Size of the object on Persistent Memory including Self Assuming that self is also on PM (e.g. the root object), the size of allocated persistent memory includes the size of all objects pointed by this object and the size Self.

Implementors