pub trait CoreLocal<T: 'static> {
// Required methods
fn new(init: fn() -> T) -> Self;
fn with<F, U>(&self, f: F) -> U
where F: FnOnce(&T) -> U;
}
Expand description
A core-local storage cell.
This trait represents an architecture-specific mechanism for storing local data for each CPU core.
Required Methods§
Object Safety§
This trait is not object safe.