From 1ccb5c0f26defdb31fcf0b47d1d536e1f63c84cf Mon Sep 17 00:00:00 2001 From: Tristan Guichaoua Date: Mon, 8 Aug 2022 15:12:43 +0200 Subject: [PATCH] rename RhaiCustomType to CustomType --- src/api/build_type.rs | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/build_type.rs b/src/api/build_type.rs index 785034e1..13e05c4e 100644 --- a/src/api/build_type.rs +++ b/src/api/build_type.rs @@ -46,7 +46,7 @@ use crate::Engine; /// # Ok(()) /// # } /// ``` -pub trait RhaiCustomType { +pub trait CustomType { /// Builds the custom type for use with the [`Engine`]. /// i.e. register the type, getters, setters, methods, etc... fn build(engine: &mut Engine); @@ -59,7 +59,7 @@ impl Engine { /// See [`RhaiCustomType`]. pub fn build_type(&mut self) -> &mut Self where - T: RhaiCustomType, + T: CustomType, { T::build(self); self diff --git a/src/lib.rs b/src/lib.rs index 0a19d5fc..cf7d0a04 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -166,7 +166,7 @@ type ExclusiveRange = std::ops::Range; /// An inclusive integer range. type InclusiveRange = std::ops::RangeInclusive; -pub use api::{build_type::RhaiCustomType, events::VarDefInfo}; +pub use api::{build_type::CustomType, events::VarDefInfo}; pub use ast::{FnAccess, AST}; pub use engine::{Engine, OP_CONTAINS, OP_EQUALS}; pub use eval::EvalContext;