Struct mica::ll::bytecode::TraitPrototype
source · pub struct TraitPrototype {
pub name: Rc<str>,
pub required: HashSet<MethodIndex>,
pub shims: Vec<(MethodIndex, FunctionIndex)>,
}
Expand description
The prototype of a trait. Contains a list of all method IDs the trait must implement.
Fields§
§name: Rc<str>
§required: HashSet<MethodIndex>
List of method IDs that this trait requires.
shims: Vec<(MethodIndex, FunctionIndex)>
List of (method_id, function_id)
mappings that make up the dtable of shims for the trait.