Struct salsa_2022::salsa_struct::Singleton
source · [−]pub struct Singleton;
Expand description
A ZST that implements SalsaStructInDb
It is used for implementing “constant” tracked function (ones that only take a database as an argument).
Trait Implementations
sourceimpl<DB: ?Sized + Database> SalsaStructInDb<DB> for Singleton
impl<DB: ?Sized + Database> SalsaStructInDb<DB> for Singleton
fn register_dependent_fn(_db: &DB, _index: IngredientIndex)
Auto Trait Implementations
impl RefUnwindSafe for Singleton
impl Send for Singleton
impl Sync for Singleton
impl Unpin for Singleton
impl UnwindSafe for Singleton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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