pub struct Instance<'a> {
pub item: ItemId,
pub args: &'a [TypeId],
pub strategy: Strategy,
}Expand description
Fields§
§item: ItemIdThe generic item (a function, possibly a method of a generic impl or interface).
args: &'a [TypeId]The item’s placeholders, in order, replaced by concrete types (owner
placeholders first: an interface’s Self and the owner’s parameters,
then the item’s own). For a Strategy::Shared item reached only
from other shared code, the item’s own placeholders.
strategy: StrategyHow the instance is compiled.
Trait Implementations§
impl<'a> Copy for Instance<'a>
impl<'a> Eq for Instance<'a>
impl<'a> StructuralPartialEq for Instance<'a>
Auto Trait Implementations§
impl<'a> Freeze for Instance<'a>
impl<'a> RefUnwindSafe for Instance<'a>
impl<'a> Send for Instance<'a>
impl<'a> Sync for Instance<'a>
impl<'a> Unpin for Instance<'a>
impl<'a> UnsafeUnpin for Instance<'a>
impl<'a> UnwindSafe for Instance<'a>
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