Trait ConcreteObjectConstraint
pub unsafe trait ConcreteObjectConstraint: ObjectConstraint {
// Provided method
fn create_instance(
domain: &Domain,
name: impl AsRef<KanziStr>,
) -> Result<Self, Error> { ... }
}Expand description
Used for statically marking all non-virtual classes which derive from Object.
Provides a way of creating default instances of a given class.
§Safety
ConcreteObjectConstraint is an internal trait and shouldn’t be implemented by users directly.
This trait should only be implemented for concrete (i.e. non-virtual) classes.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.