🔧 Phase A: Add share_box() method to NyashBox trait and all Box implementations

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-15 04:29:41 +00:00
parent a59fe089dd
commit cdcfa98dd1
36 changed files with 250 additions and 0 deletions

View File

@ -215,6 +215,12 @@ impl BoxCore for TimerBox {
impl NyashBox for TimerBox {
fn clone_box(&self) -> Box<dyn NyashBox> {
/// 仮実装: clone_boxと同じ後で修正
fn share_box(&self) -> Box<dyn NyashBox> {
self.clone_box()
}
Box::new(self.clone())
}