[−][src]Enum rustc_mir::interpret::memory::FnVal

pub enum FnVal<'tcx, Other> {
    Instance(Instance<'tcx>),
    Other(Other),
}

The value of a function pointer.

Variants

Instance(Instance<'tcx>)
Other(Other)

Implementations

impl<'tcx, Other> FnVal<'tcx, Other>[src]

pub fn as_instance(self) -> InterpResult<'tcx, Instance<'tcx>>[src]

Trait Implementations

impl<'tcx, Other: Clone> Clone for FnVal<'tcx, Other>[src]

impl<'tcx, Other: Copy> Copy for FnVal<'tcx, Other>[src]

impl<'tcx, Other: Debug> Debug for FnVal<'tcx, Other>[src]

Auto Trait Implementations

impl<'tcx, Other> !RefUnwindSafe for FnVal<'tcx, Other>

impl<'tcx, Other> !Send for FnVal<'tcx, Other>

impl<'tcx, Other> !Sync for FnVal<'tcx, Other>

impl<'tcx, Other> Unpin for FnVal<'tcx, Other> where
    Other: Unpin, 

impl<'tcx, Other> !UnwindSafe for FnVal<'tcx, Other>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]