This commit is contained in:
Tristan Guichaoua 2022-08-09 10:14:18 +02:00
parent 19dc368cfd
commit e4e315fb2a

View File

@ -148,7 +148,13 @@ where
self.engine.register_result_fn(name, method); self.engine.register_result_fn(name, method);
self self
} }
}
#[cfg(not(feature = "no_object"))]
impl<'a, T> TypeBuilder<'a, T>
where
T: Variant + Clone,
{
/// Register a getter function. /// Register a getter function.
/// ///
/// The function signature must start with `&mut self` and not `&self`. /// The function signature must start with `&mut self` and not `&self`.
@ -220,7 +226,13 @@ where
self.engine.register_get_set(name, get_fn, set_fn); self.engine.register_get_set(name, get_fn, set_fn);
self self
} }
}
#[cfg(any(not(feature = "no_index"), not(feature = "no_object")))]
impl<'a, T> TypeBuilder<'a, T>
where
T: Variant + Clone,
{
/// Register an index getter. /// Register an index getter.
/// ///
/// The function signature must start with `&mut self` and not `&self`. /// The function signature must start with `&mut self` and not `&self`.