blob: 082edf250306ead39bb7754e391b8e164c59ba9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![allow(clippy::module_name_repetitions)]
//! Smart pointer type aliases.
use std::rc::Rc;
/// A smart pointer unique to the holder.
pub type TransientPtr<Interface> = Box<Interface>;
/// A smart pointer to a shared resource.
pub type SingletonPtr<Interface> = Rc<Interface>;
/// A smart pointer to a factory.
pub type FactoryPtr<FactoryInterface> = Rc<FactoryInterface>;
|