From e0216c7cbf008f2867ef92955abce28dba27f5e3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 4 Aug 2023 16:32:46 +0200 Subject: refactor: rename CastFromSync to CastFromArc --- src/private/cast/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/private/cast/mod.rs') diff --git a/src/private/cast/mod.rs b/src/private/cast/mod.rs index 0b80057..ddff2a4 100644 --- a/src/private/cast/mod.rs +++ b/src/private/cast/mod.rs @@ -153,7 +153,7 @@ pub trait CastFrom: Any + 'static fn rc_any(self: Rc) -> Rc; } -/// `CastFromSync` must be extended by a trait that is `Any + Sync + Send + 'static` +/// This trait must be extended by a trait that is `Any + Sync + Send + 'static` /// and wants to allow for casting into another trait behind references and smart pointers /// especially including `Arc`. /// @@ -163,11 +163,11 @@ pub trait CastFrom: Any + 'static /// /// # Examples /// ```ignore -/// trait Source: CastFromSync { +/// trait Source: CastFromArc { /// ... /// } /// ``` -pub trait CastFromSync: CastFrom + Sync + Send + 'static +pub trait CastFromArc: CastFrom + Sync + Send + 'static { fn arc_any(self: Arc) -> Arc; } @@ -198,7 +198,7 @@ impl CastFrom for dyn Any + 'static } } -impl CastFromSync for Source +impl CastFromArc for Source { fn arc_any(self: Arc) -> Arc { @@ -219,7 +219,7 @@ impl CastFrom for dyn Any + Sync + Send + 'static } } -impl CastFromSync for dyn Any + Sync + Send + 'static +impl CastFromArc for dyn Any + Sync + Send + 'static { fn arc_any(self: Arc) -> Arc { -- cgit v1.2.3-18-g5258