pub trait Value<'str, 'ctx>: Display {
// Required methods
fn id(&self) -> ValueId;
fn size(&self) -> usize;
}Expand description
Trait implemented by all typed value reference types.
Provides a uniform interface to a value’s ValueId and its size in bytes.
Terminators and non-data values (blocks, functions) report size() == 0.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".