aboutsummaryrefslogtreecommitdiff
path: root/src/private/any_factory.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-11-19 15:45:12 +0100
committerHampusM <hampus@hampusmat.com>2022-11-19 15:45:12 +0100
commit9f27a925bd323e8e0864bedeb33a3c6953517ea1 (patch)
treeea5d8faaed82c58fa037fa377173bb365e1cd697 /src/private/any_factory.rs
parentd99cbf9fa95856cbc14a3217e1cd3f13aeb2e0b3 (diff)
refactor: reorganize non-public API items
Diffstat (limited to 'src/private/any_factory.rs')
-rw-r--r--src/private/any_factory.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/private/any_factory.rs b/src/private/any_factory.rs
new file mode 100644
index 0000000..bdd68a6
--- /dev/null
+++ b/src/private/any_factory.rs
@@ -0,0 +1,11 @@
+//! Interface for any factory to ever exist.
+
+use std::fmt::Debug;
+
+use crate::private::cast::{CastFrom, CastFromSync};
+
+/// Interface for any factory to ever exist.
+pub trait AnyFactory: CastFrom + Debug {}
+
+/// Interface for any threadsafe factory to ever exist.
+pub trait AnyThreadsafeFactory: CastFromSync + Debug {}