Trait corundum::RootObj[][src]

pub trait RootObj<A: MemPool> {
    fn init(journal: &Journal<A>) -> Self;
}

Creates a default value of the type

The root type should implement this trait or trait Default to be able to initialize the root object for the first time. Every type implementing Default is already implementing RootObj, by default.

Required methods

fn init(journal: &Journal<A>) -> Self[src]

Loading content...

Implementations on Foreign Types

impl<T: Default, A: MemPool> RootObj<A> for &[T][src]

impl<T: RootObj<A>, A: MemPool> RootObj<A> for &[T][src]

Loading content...

Implementors

impl<T: RootObj<A> + PSafe, A: MemPool> RootObj<A> for Pbox<T, A>[src]

impl<T: RootObj<A> + PSafe, A: MemPool> RootObj<A> for Prc<T, A>[src]

impl<T: RootObj<A> + PSafe, A: MemPool> RootObj<A> for Parc<T, A>[src]

impl<T: RootObj<A>, A: MemPool> RootObj<A> for PMutex<T, A>[src]

impl<T: PSafe + RootObj<A>, A: MemPool> RootObj<A> for PRefCell<T, A>[src]

impl<T: PSafe + ?Sized, A: MemPool> RootObj<A> for Weak<T, A>[src]

impl<T: Default + PSafe + ?Sized, A: MemPool> RootObj<A> for Prc<T, A>[src]

impl<T: Default + PSafe + ?Sized, A: MemPool> RootObj<A> for Parc<T, A>[src]

impl<T: Default + PSafe, A: MemPool> RootObj<A> for Pbox<T, A>[src]

impl<T: Default, A: MemPool> RootObj<A> for T[src]

Loading content...