Derive standard traits for Limits.
This commit is contained in:
parent
f4c74cc03b
commit
196e145c96
@ -340,6 +340,7 @@ pub fn get_script_function_by_signature<'a>(
|
|||||||
///
|
///
|
||||||
/// This type is volatile and may change.
|
/// This type is volatile and may change.
|
||||||
#[cfg(not(feature = "unchecked"))]
|
#[cfg(not(feature = "unchecked"))]
|
||||||
|
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
|
||||||
pub struct Limits {
|
pub struct Limits {
|
||||||
/// Maximum levels of call-stack to prevent infinite recursion.
|
/// 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`.
|
/// Currently, `Engine` is neither `Send` nor `Sync`. Use the `sync` feature to make it `Send + Sync`.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct Engine {
|
pub struct Engine {
|
||||||
/// A unique ID identifying this scripting `Engine`.
|
/// A unique ID identifying this scripting `Engine`.
|
||||||
pub id: Option<String>,
|
pub id: Option<String>,
|
||||||
|
Loading…
Reference in New Issue
Block a user