aboutsummaryrefslogtreecommitdiff
path: root/src/any_factory.rs
blob: 3aee98fe65680b976f0908664c4ecc9bba66a788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Interface for any factory to ever exist.

use std::any::Any;
use std::fmt::Debug;

/// Interface for any factory to ever exist.
pub trait AnyFactory: Any + Debug
{
    fn as_any(&self) -> &dyn Any;
}

/// Interface for any threadsafe factory to ever exist.
pub trait AnyThreadsafeFactory: AnyFactory + Send + Sync + Debug {}