Enum lamellar::array::LamellarWriteArray
source · [−]pub enum LamellarWriteArray<T: Dist> {
UnsafeArray(UnsafeArray<T>),
AtomicArray(AtomicArray<T>),
LocalLockAtomicArray(LocalLockAtomicArray<T>),
}Variants
UnsafeArray(UnsafeArray<T>)
AtomicArray(AtomicArray<T>)
LocalLockAtomicArray(LocalLockAtomicArray<T>)
Implementations
sourceimpl<T: Dist + AmDist + 'static> LamellarWriteArray<T>
impl<T: Dist + AmDist + 'static> LamellarWriteArray<T>
pub fn reduce(
&self,
op: &str
) -> Box<dyn LamellarRequest<Output = T> + Send + Sync>
pub fn sum(&self) -> Box<dyn LamellarRequest<Output = T> + Send + Sync>
pub fn max(&self) -> Box<dyn LamellarRequest<Output = T> + Send + Sync>
pub fn prod(&self) -> Box<dyn LamellarRequest<Output = T> + Send + Sync>
Trait Implementations
sourceimpl<T: ElementArithmeticOps> ArithmeticOps<T> for LamellarWriteArray<T>
impl<T: ElementArithmeticOps> ArithmeticOps<T> for LamellarWriteArray<T>
fn add(
&self,
index: usize,
val: T
) -> Option<Box<dyn LamellarRequest<Output = ()> + Send + Sync>>
fn fetch_add(
&self,
index: usize,
val: T
) -> Box<dyn LamellarRequest<Output = T> + Send + Sync>
fn sub(
&self,
index: usize,
val: T
) -> Option<Box<dyn LamellarRequest<Output = ()> + Send + Sync>>
fn fetch_sub(
&self,
index: usize,
val: T
) -> Box<dyn LamellarRequest<Output = T> + Send + Sync>
fn mul(
&self,
index: usize,
val: T
) -> Option<Box<dyn LamellarRequest<Output = ()> + Send + Sync>>
fn fetch_mul(
&self,
index: usize,
val: T
) -> Box<dyn LamellarRequest<Output = T> + Send + Sync>
fn div(
&self,
index: usize,
val: T
) -> Option<Box<dyn LamellarRequest<Output = ()> + Send + Sync>>
fn fetch_div(
&self,
index: usize,
val: T
) -> Box<dyn LamellarRequest<Output = T> + Send + Sync>
sourceimpl<T: Clone + Dist> Clone for LamellarWriteArray<T>
impl<T: Clone + Dist> Clone for LamellarWriteArray<T>
sourcefn clone(&self) -> LamellarWriteArray<T>
fn clone(&self) -> LamellarWriteArray<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'de, T: Dist> Deserialize<'de> for LamellarWriteArray<T> where
T: Dist + Serialize + DeserializeOwned,
impl<'de, T: Dist> Deserialize<'de> for LamellarWriteArray<T> where
T: Dist + Serialize + DeserializeOwned,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: Dist> From<AtomicArray<T>> for LamellarWriteArray<T>
impl<T: Dist> From<AtomicArray<T>> for LamellarWriteArray<T>
sourcefn from(v: AtomicArray<T>) -> LamellarWriteArray<T>
fn from(v: AtomicArray<T>) -> LamellarWriteArray<T>
Performs the conversion.
sourceimpl<T: Dist> From<LocalLockAtomicArray<T>> for LamellarWriteArray<T>
impl<T: Dist> From<LocalLockAtomicArray<T>> for LamellarWriteArray<T>
sourcefn from(v: LocalLockAtomicArray<T>) -> LamellarWriteArray<T>
fn from(v: LocalLockAtomicArray<T>) -> LamellarWriteArray<T>
Performs the conversion.
sourceimpl<T: Dist> From<UnsafeArray<T>> for LamellarWriteArray<T>
impl<T: Dist> From<UnsafeArray<T>> for LamellarWriteArray<T>
sourcefn from(v: UnsafeArray<T>) -> LamellarWriteArray<T>
fn from(v: UnsafeArray<T>) -> LamellarWriteArray<T>
Performs the conversion.
sourceimpl<T: Dist> LamellarArray<T> for LamellarWriteArray<T>
impl<T: Dist> LamellarArray<T> for LamellarWriteArray<T>
sourceimpl<T: Dist> LamellarArrayGet<T> for LamellarWriteArray<T>
impl<T: Dist> LamellarArrayGet<T> for LamellarWriteArray<T>
fn get<U: MyInto<LamellarArrayInput<T>> + LamellarWrite>(
&self,
__enum_dispatch_arg_0: usize,
__enum_dispatch_arg_1: U
) -> Box<dyn LamellarArrayRequest<Output = ()> + Send + Sync>
fn at(
&self,
__enum_dispatch_arg_0: usize
) -> Box<dyn LamellarArrayRequest<Output = T> + Send + Sync>
sourceimpl<T: Dist> LamellarArrayPut<T> for LamellarWriteArray<T>
impl<T: Dist> LamellarArrayPut<T> for LamellarWriteArray<T>
fn put<U: MyInto<LamellarArrayInput<T>> + LamellarRead>(
&self,
__enum_dispatch_arg_0: usize,
__enum_dispatch_arg_1: U
) -> Box<dyn LamellarArrayRequest<Output = ()> + Send + Sync>
sourceimpl<T: Dist> Serialize for LamellarWriteArray<T> where
T: Dist + Serialize + DeserializeOwned,
impl<T: Dist> Serialize for LamellarWriteArray<T> where
T: Dist + Serialize + DeserializeOwned,
sourceimpl<T: Dist> TryInto<AtomicArray<T>> for LamellarWriteArray<T>
impl<T: Dist> TryInto<AtomicArray<T>> for LamellarWriteArray<T>
sourcefn try_into(
self
) -> Result<AtomicArray<T>, <Self as TryInto<AtomicArray<T>>>::Error>
fn try_into(
self
) -> Result<AtomicArray<T>, <Self as TryInto<AtomicArray<T>>>::Error>
Performs the conversion.
sourceimpl<T: Dist> TryInto<LocalLockAtomicArray<T>> for LamellarWriteArray<T>
impl<T: Dist> TryInto<LocalLockAtomicArray<T>> for LamellarWriteArray<T>
sourcefn try_into(
self
) -> Result<LocalLockAtomicArray<T>, <Self as TryInto<LocalLockAtomicArray<T>>>::Error>
fn try_into(
self
) -> Result<LocalLockAtomicArray<T>, <Self as TryInto<LocalLockAtomicArray<T>>>::Error>
Performs the conversion.
sourceimpl<T: Dist> TryInto<UnsafeArray<T>> for LamellarWriteArray<T>
impl<T: Dist> TryInto<UnsafeArray<T>> for LamellarWriteArray<T>
sourcefn try_into(
self
) -> Result<UnsafeArray<T>, <Self as TryInto<UnsafeArray<T>>>::Error>
fn try_into(
self
) -> Result<UnsafeArray<T>, <Self as TryInto<UnsafeArray<T>>>::Error>
Performs the conversion.
Auto Trait Implementations
impl<T> !RefUnwindSafe for LamellarWriteArray<T>
impl<T> Send for LamellarWriteArray<T>
impl<T> Sync for LamellarWriteArray<T>
impl<T> Unpin for LamellarWriteArray<T> where
T: Unpin,
impl<T> !UnwindSafe for LamellarWriteArray<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more