parent
bee98999db
commit
77e148fcd4
@ -41,3 +41,9 @@ impl fmt::Debug for Function {
|
|||||||
write!(f, "Function {{ [...] }}")
|
write!(f, "Function {{ [...] }}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// A trait to ensure a type is `Send` and `Sync`.
|
||||||
|
/// If implemented for a type, the crate will not compile if the type is not `Send` and `Sync`.
|
||||||
|
trait IsSendAndSync: Send + Sync {}
|
||||||
|
|
||||||
|
impl IsSendAndSync for Function {}
|
||||||
|
Loading…
Reference in New Issue
Block a user