We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1542d0e commit 8ba44ecCopy full SHA for 8ba44ec
src/types/iden/core.rs
@@ -51,6 +51,13 @@ impl Iden for &'static str {
51
}
52
53
54
+#[cfg(feature = "thread-safe")]
55
+/// Identifier statically known at compile-time.
56
+pub trait IdenStatic: Iden + Copy + Send + Sync + 'static {
57
+ fn as_str(&self) -> &'static str;
58
+}
59
+
60
+#[cfg(not(feature = "thread-safe"))]
61
/// Identifier statically known at compile-time.
62
pub trait IdenStatic: Iden + Copy + 'static {
63
fn as_str(&self) -> &'static str;
0 commit comments