diff options
| author | HampusM <hampus@hampusmat.com> | 2024-07-11 20:48:47 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2024-07-11 20:48:47 +0200 |
| commit | cde9d4b41a4b37612420ac522bc261147966efa5 (patch) | |
| tree | 0a3e84e3e8ef622f3db5b7802c36ad29711ee5cc /src/any_factory.rs | |
| parent | ebd6d71e7ef357c310264bf55001498928fb94c7 (diff) | |
refactor: move & rename AnyFactory and AnyThreadsafeFactory traits
Diffstat (limited to 'src/any_factory.rs')
| -rw-r--r-- | src/any_factory.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/any_factory.rs b/src/any_factory.rs deleted file mode 100644 index 3aee98f..0000000 --- a/src/any_factory.rs +++ /dev/null @@ -1,13 +0,0 @@ -//! 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 {} |
