pub struct Remap {
pub types: Vec<Option<TypeId>>,
pub interfaces: Vec<Option<InterfaceId>>,
pub worlds: Vec<Option<WorldId>>,
pub packages: Vec<PackageId>,
/* private fields */
}Expand description
Structure returned by Resolve::merge which contains mappings from
old-ids to new-ids after the merge.
Fields§
§types: Vec<Option<TypeId>>§interfaces: Vec<Option<InterfaceId>>§worlds: Vec<Option<WorldId>>§packages: Vec<PackageId>Implementations§
Source§impl Remap
impl Remap
pub fn map_type(&self, id: TypeId, span: Span) -> ResolveResult<TypeId>
pub fn map_interface( &self, id: InterfaceId, span: Span, ) -> ResolveResult<InterfaceId>
pub fn map_world(&self, id: WorldId, span: Span) -> ResolveResult<WorldId>
pub fn map_world_for_type( &self, id: WorldId, span: Span, ) -> ResolveResult<WorldId>
pub fn map_interface_for_type( &self, id: InterfaceId, span: Span, ) -> ResolveResult<InterfaceId>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Remap
impl RefUnwindSafe for Remap
impl Send for Remap
impl Sync for Remap
impl Unpin for Remap
impl UnsafeUnpin for Remap
impl UnwindSafe for Remap
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