Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Made MutableArray Send + Sync #617

Merged
merged 1 commit into from
Nov 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ pub trait Array: std::fmt::Debug + Send + Sync {
}

/// A trait describing a mutable array; i.e. an array whose values can be changed.
/// Mutable arrays are not `Send + Sync` and cannot be cloned but can be mutated in place,
/// Mutable arrays cannot be cloned but can be mutated in place,
/// thereby making them useful to perform numeric operations without allocations.
/// As in [`Array`], concrete arrays (such as [`MutablePrimitiveArray`]) implement how they are mutated.
pub trait MutableArray: std::fmt::Debug {
pub trait MutableArray: std::fmt::Debug + Send + Sync {
/// The [`DataType`] of the array.
fn data_type(&self) -> &DataType;

Expand Down