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

Commit

Permalink
Added Send+Sync to MutableArray.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Nov 19, 2021
1 parent b3ed162 commit fbafcf0
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit fbafcf0

Please sign in to comment.