Expand description

This module defines Component trait and related types.

Structs

Defines conversion of reference to component into reference to target type.

Type information required for components.

Reference to registered ComponentInfo. Allows user to setup custom drop and set hooks.

Default drop hook type.

Default set hook type.

External drop hook type.

External set hook type.

Traits

Defines component properties and behavior. Types may implement this trait to act as components and support implicit self-registration.

Trait to be implemented by custom drop hooks. Has blanket implementation for Fn(&mut T, EntityId, &mut ActionEncoder).

Trait to be implemented by custom set hooks. Has blanket implementation for Fn(&mut T, &T, EntityId, &mut ActionEncoder).

Derive Macros