Skip to main content

Accumulator

Trait Accumulator 

Source
pub trait Accumulator:
    Send
    + Sync
    + Any
    + Sized
    + UnwindSafe {
    const DEBUG_NAME: &'static str;

    // Required method
    fn accumulate<Db>(self, db: &Db)
       where Db: ?Sized + Database;
}
Expand description

Trait implemented on the struct that user annotated with #[salsa::accumulator]. The Self type is therefore the types to be accumulated.

Required Associated Constants§

Source

const DEBUG_NAME: &'static str

Required Methods§

Source

fn accumulate<Db>(self, db: &Db)
where Db: ?Sized + Database,

Accumulate an instance of this in the database for later retrieval.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§