diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-27 15:17:33 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-31 12:15:18 +0200 |
commit | 3fbf26181f1b4b9e594debb103fd347bd93240ea (patch) | |
tree | 63cf13edb5ea21a6cbbcfcf474611820382a5048 /README.md | |
parent | 224e59112e65ce6cbafe5a87dba031dd11e936a8 (diff) |
refactor!: rename InterfacePtr to TransientPtr
BREAKING CHANGE: InterfacePtr has been renamed to TransientPtr
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -33,7 +33,7 @@ The goal of Syrette is to be a simple, useful, convenient and familiar DI librar ## Example usage ```rust use syrette::{injectable, DIContainer}; -use syrette::ptr::InterfacePtr; +use syrette::ptr::TransientPtr; trait IWeapon { @@ -65,13 +65,13 @@ trait IWarrior } struct Warrior { - weapon: InterfacePtr<dyn IWeapon>, + weapon: TransientPtr<dyn IWeapon>, } #[injectable(IWarrior)] impl Warrior { - fn new(weapon: InterfacePtr<dyn IWeapon>) -> Self + fn new(weapon: TransientPtr<dyn IWeapon>) -> Self { Self { weapon } } |