From 0d9d382d5186b4f72cf7f85acb39c90c11d1997b Mon Sep 17 00:00:00 2001 From: Jim Turner Date: Mon, 31 May 2021 21:48:32 -0400 Subject: [PATCH] Implement From> for ArcArray --- src/arraytraits.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/arraytraits.rs b/src/arraytraits.rs index 421fc4713..8630a189d 100644 --- a/src/arraytraits.rs +++ b/src/arraytraits.rs @@ -354,6 +354,15 @@ where } } +impl From> for ArcArray +where + D: Dimension, +{ + fn from(arr: Array) -> ArcArray { + arr.into_shared() + } +} + /// Argument conversion into an array view /// /// The trait is parameterized over `A`, the element type, and `D`, the