diff --git a/src/api/build_type.rs b/src/api/build_type.rs index d22d1142..ce192367 100644 --- a/src/api/build_type.rs +++ b/src/api/build_type.rs @@ -76,6 +76,7 @@ impl Engine { /// i.e. register the type, getters, setters, methods, etc... /// /// See [`CustomType`]. + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn build_type(&mut self) -> &mut Self where T: CustomType, @@ -108,11 +109,13 @@ where } } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_name(&mut self, name: &'static str) -> &mut Self { self.name = Some(name); self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_fn(&mut self, name: N, method: F) -> &mut Self where N: AsRef + Into, @@ -122,6 +125,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_result_fn(&mut self, name: N, method: F) -> &mut Self where N: AsRef + Into, @@ -131,6 +135,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_get( &mut self, name: impl AsRef, @@ -140,6 +145,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_get_result( &mut self, name: impl AsRef, @@ -149,6 +155,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_set( &mut self, name: impl AsRef, @@ -158,6 +165,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_set_result( &mut self, name: impl AsRef, @@ -167,6 +175,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_get_set( &mut self, name: impl AsRef, @@ -177,6 +186,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_indexer_get( &mut self, get_fn: impl Fn(&mut T, X) -> V + SendSync + 'static, @@ -185,6 +195,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_indexer_get_result( &mut self, get_fn: impl Fn(&mut T, X) -> RhaiResultOf + SendSync + 'static, @@ -193,6 +204,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_indexer_set( &mut self, set_fn: impl Fn(&mut T, X, V) + SendSync + 'static, @@ -201,6 +213,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_indexer_set_result( &mut self, set_fn: impl Fn(&mut T, X, V) -> RhaiResultOf<()> + SendSync + 'static, @@ -209,6 +222,7 @@ where self } + #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_indexer_get_set( &mut self, get_fn: impl Fn(&mut T, X) -> V + SendSync + 'static,