Skip to main content

RudaWrite

Trait RudaWrite 

Source
pub trait RudaWrite<T: RudaType>: RudaRead<T> + RudaType<ExpandType: RudaWriteExpand<T>> {
    // Required method
    fn write(&mut self, index: usize, value: T);

    // Provided method
    fn __expand_write(
        scope: &mut Scope,
        this: <Self as RudaType>::ExpandType,
        index: <usize as RudaType>::ExpandType,
        value: <T as RudaType>::ExpandType,
    ) -> <() as RudaType>::ExpandType { ... }
}

Required Methods§

Source

fn write(&mut self, index: usize, value: T)

Provided Methods§

Source

fn __expand_write( scope: &mut Scope, this: <Self as RudaType>::ExpandType, index: <usize as RudaType>::ExpandType, value: <T as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: RudaPrimitive> RudaWrite<T> for Array<T>

Source§

fn write(&mut self, index: usize, value: T)

Source§

impl<T: RudaPrimitive> RudaWrite<T> for SharedMemory<T>

Source§

fn write(&mut self, index: usize, value: T)

Implementors§