pub struct LinkTable {
pub function_resolutions: BTreeMap<FunctionId, FunctionId>,
pub global_resolutions: BTreeMap<ValueId, ValueId>,
pub conflicts: Vec<LinkConflict>,
}Expand description
Cross-module symbol resolution.
Maps extern declarations in one module to their definitions in another.
Fields§
§function_resolutions: BTreeMap<FunctionId, FunctionId>Extern function declaration FunctionId -> defining function’s FunctionId.
global_resolutions: BTreeMap<ValueId, ValueId>Extern global ValueId -> defining global’s ValueId.
conflicts: Vec<LinkConflict>Functions with conflicting definitions across modules.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LinkTable
impl<'de> Deserialize<'de> for LinkTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for LinkTable
Auto Trait Implementations§
impl Freeze for LinkTable
impl RefUnwindSafe for LinkTable
impl Send for LinkTable
impl Sync for LinkTable
impl Unpin for LinkTable
impl UnsafeUnpin for LinkTable
impl UnwindSafe for LinkTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more