Struct Remap
pub struct Remap {
pub types: Vec<Option<Id<TypeDef>>>,
pub interfaces: Vec<Option<Id<Interface>>>,
pub worlds: Vec<Option<Id<World>>>,
pub packages: Vec<Id<Package>>,
/* 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<Id<TypeDef>>>§interfaces: Vec<Option<Id<Interface>>>§worlds: Vec<Option<Id<World>>>§packages: Vec<Id<Package>>Implementations§
§impl Remap
impl Remap
pub fn map_type( &self, id: Id<TypeDef>, span: Span, ) -> Result<Id<TypeDef>, ResolveError>
pub fn map_interface( &self, id: Id<Interface>, span: Span, ) -> Result<Id<Interface>, ResolveError>
pub fn map_world( &self, id: Id<World>, span: Span, ) -> Result<Id<World>, ResolveError>
pub fn map_world_for_type( &self, id: Id<World>, span: Span, ) -> Result<Id<World>, ResolveError>
pub fn map_interface_for_type( &self, id: Id<Interface>, span: Span, ) -> Result<Id<Interface>, ResolveError>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more