Derive standard traits for Limits.

This commit is contained in:
Stephen Chung 2020-08-23 16:29:32 +08:00
parent f4c74cc03b
commit 196e145c96

View File

@ -340,6 +340,7 @@ pub fn get_script_function_by_signature<'a>(
///
/// This type is volatile and may change.
#[cfg(not(feature = "unchecked"))]
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
pub struct Limits {
/// Maximum levels of call-stack to prevent infinite recursion.
///
@ -377,6 +378,7 @@ pub struct Limits {
/// ```
///
/// Currently, `Engine` is neither `Send` nor `Sync`. Use the `sync` feature to make it `Send + Sync`.
#[derive(Clone)]
pub struct Engine {
/// A unique ID identifying this scripting `Engine`.
pub id: Option<String>,