pub fn to_owned(self) -> Result<A, Self> {
        if self.ref_count() > 1 {
            Err(self)
        } else {
            Ok(self.to_ref())
        }
    }
/// Returns an owned version of this array if the caller has exclusive access,
/// or returns back this reference otherwise.
Returns an owned version of this array if the caller has exclusive access,
or returns back this reference otherwise.
Returns an owned version of this array if the caller has exclusive access or returns back this reference otherwise .
pub fn to_owned(self) -> Result<A, Self> {
        if self.ref_count() > 1 {
            Err(self)
        } else {
            Ok(self.to_ref())
        }
    }
pub fn to_owned ( self ) -> Result < A , Self > { if self . ref_count ( ) > 1 { Err ( self ) } else { Ok ( self . to_ref ( ) ) } }
Returns an owned version of this array if the caller has exclusive access,
or returns back this reference otherwise.
Returns an owned version of this array if the caller has exclusive access or returns back this reference otherwise .
self