Skip to main content

SharedArrayExt

Trait SharedArrayExt 

Source
pub trait SharedArrayExt: TypedArrayRef<Shared> {
    // Provided methods
    fn source(&self) -> &ArrayRef { ... }
    fn current_array_ref(&self) -> &ArrayRef { ... }
    fn get_or_compute(
        &self,
        f: impl FnOnce(&ArrayRef) -> VortexResult<Canonical>,
    ) -> VortexResult<ArrayRef> { ... }
    async fn get_or_compute_async<F, Fut>(&self, f: F) -> VortexResult<ArrayRef>
       where F: FnOnce(ArrayRef) -> Fut,
             Fut: Future<Output = VortexResult<Canonical>> { ... }
}

Provided Methods§

Source

fn source(&self) -> &ArrayRef

Source

fn current_array_ref(&self) -> &ArrayRef

Source

fn get_or_compute( &self, f: impl FnOnce(&ArrayRef) -> VortexResult<Canonical>, ) -> VortexResult<ArrayRef>

Source

async fn get_or_compute_async<F, Fut>(&self, f: F) -> VortexResult<ArrayRef>
where F: FnOnce(ArrayRef) -> Fut, Fut: Future<Output = VortexResult<Canonical>>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§