Enum rustc_middle::mir::mono::InstantiationMode
source · [−]pub enum InstantiationMode {
GloballyShared {
may_conflict: bool,
},
LocalCopy,
}
Expand description
Describes how a monomorphization will be instantiated in object files.
Variants
GloballyShared
There will be exactly one instance of the given MonoItem. It will have external linkage so that it can be linked to from other codegen units.
LocalCopy
Each codegen unit containing a reference to the given MonoItem will have its own private copy of the function (with internal linkage).
Trait Implementations
sourceimpl PartialEq<InstantiationMode> for InstantiationMode
impl PartialEq<InstantiationMode> for InstantiationMode
sourcefn eq(&self, other: &InstantiationMode) -> bool
fn eq(&self, other: &InstantiationMode) -> bool
impl StructuralPartialEq for InstantiationMode
Auto Trait Implementations
impl RefUnwindSafe for InstantiationMode
impl Send for InstantiationMode
impl Sync for InstantiationMode
impl Unpin for InstantiationMode
impl UnwindSafe for InstantiationMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, R> InternIteratorElement<T, R> for T
impl<T, R> InternIteratorElement<T, R> for T
type Output = R
fn intern_with<I, F>(iter: I, f: F) -> <T as InternIteratorElement<T, R>>::Outputwhere
I: Iterator<Item = T>,
F: FnOnce(&[T]) -> R,
sourceimpl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
sourceimpl<CTX, T> Value<CTX> for Twhere
CTX: DepContext,
impl<CTX, T> Value<CTX> for Twhere
CTX: DepContext,
default fn from_cycle_error(tcx: CTX) -> T
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
GloballyShared
: 1 byteLocalCopy
: 0 bytes