pub trait StoreConst<T> {
// Required methods
fn store_const(&self, value: T) -> StackAddress;
fn update_const(&self, position: StackAddress, value: T);
}Expand description
Trait for writing typed data to a program const pool.
Required Methods§
Sourcefn store_const(&self, value: T) -> StackAddress
fn store_const(&self, value: T) -> StackAddress
Write a constant to the constant pool
Sourcefn update_const(&self, position: StackAddress, value: T)
fn update_const(&self, position: StackAddress, value: T)
Update a previously written (placeholder) constant.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".