diff options
| author | HampusM <hampus@hampusmat.com> | 2026-12-01 17:42:12 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-12-01 17:42:12 +0100 |
| commit | b2a130a6e30b82a7e0f80347f916265a467a4238 (patch) | |
| tree | 5685399d1cf7a28df3f91e83a2d3d2eaf2eaa20b /engine-ecs/src/component.rs | |
| parent | 8985ff5080c34cf4b07b814ed7a757311a5a332f (diff) | |
Diffstat (limited to 'engine-ecs/src/component.rs')
| -rw-r--r-- | engine-ecs/src/component.rs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/engine-ecs/src/component.rs b/engine-ecs/src/component.rs index df495ce..71608b1 100644 --- a/engine-ecs/src/component.rs +++ b/engine-ecs/src/component.rs @@ -26,7 +26,7 @@ pub mod local; pub(crate) mod storage; /// A component that is not a pair and is not a sole. -pub trait Component: WithAssociatedId + SystemInput + Any + IntoParts +pub trait Component: WithAssociatedId + SystemInput + Any + Into<Parts> { fn type_reflection() -> Option<&'static TypeReflection> where @@ -252,11 +252,6 @@ pub enum HandleError #[error("Failed to acquire component lock")] pub struct AcquireLockError(#[source] LockError); -pub trait IntoParts -{ - fn into_parts(self) -> Parts; -} - /// The parts of a component. #[derive(Debug)] #[non_exhaustive] @@ -279,14 +274,6 @@ impl Parts } } -impl IntoParts for Parts -{ - fn into_parts(self) -> Parts - { - self - } -} - #[derive(Debug)] pub struct PartsBuilder { |
