Skip to content

SharedCache option causes compilation error #30

@haydnv

Description

@haydnv

Hi @dermesser, thank you for this super useful crate! I'm trying to use the SharedCache option like so:

#[memoize(SharedCache)
fn my_function(arg: &'static str) -> Result<Struct, Error> {
   /// ...
}

But when I try to compile this I get:

$ cargo test --features=all
   Compiling ha-ndarray v0.2.0 (/.../ha-ndarray)
error[E0599]: no method named `with` found for struct `MEMOIZED_MAPPING_READ_SLICE` in the current scope
  --> src/opencl/programs/slice.rs:65:1
   |
65 | #[memoize(SharedCache, Capacity: 1024)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | method `with` not found for this struct
   | method not found in `MEMOIZED_MAPPING_READ_SLICE`

This is on version 0.4.1. Do you have any ideas about what might be going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions