pub enum ExportedFns<'tcx> {
None,
Strong(Instance<'tcx>),
Weak(Vec<Instance<'tcx>>),
AllocatorShim(Instance<'tcx>),
Many,
}Expand description
The functions exported under a given symbol.
Variants§
None
Strong(Instance<'tcx>)
Weak(Vec<Instance<'tcx>>)
AllocatorShim(Instance<'tcx>)
Many
More than one function was strongly exported under this name; this would be a linker error so we don’t specify them.
Implementations§
Source§impl<'tcx> ExportedFns<'tcx>
impl<'tcx> ExportedFns<'tcx>
pub(crate) fn merge(&mut self, other: ExportedFns<'tcx>)
Trait Implementations§
Source§impl<'tcx> Clone for ExportedFns<'tcx>
impl<'tcx> Clone for ExportedFns<'tcx>
Source§fn clone(&self) -> ExportedFns<'tcx>
fn clone(&self) -> ExportedFns<'tcx>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tcx> Debug for ExportedFns<'tcx>
impl<'tcx> Debug for ExportedFns<'tcx>
Source§impl<'tcx> Default for ExportedFns<'tcx>
impl<'tcx> Default for ExportedFns<'tcx>
Source§fn default() -> ExportedFns<'tcx>
fn default() -> ExportedFns<'tcx>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for ExportedFns<'tcx>
impl<'tcx> !UnwindSafe for ExportedFns<'tcx>
impl<'tcx> DynSend for ExportedFns<'tcx>
impl<'tcx> DynSync for ExportedFns<'tcx>
impl<'tcx> Freeze for ExportedFns<'tcx>
impl<'tcx> Send for ExportedFns<'tcx>
impl<'tcx> Sync for ExportedFns<'tcx>
impl<'tcx> Unpin for ExportedFns<'tcx>
impl<'tcx> UnsafeUnpin for ExportedFns<'tcx>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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