Enum rustc_const_eval::interpret::FnVal
source · pub enum FnVal<'tcx, Other> {
Instance(Instance<'tcx>),
Other(Other),
}
Expand description
The value of a function pointer.
Variants
Instance(Instance<'tcx>)
Other(Other)
Implementations
sourceimpl<'tcx, Other> FnVal<'tcx, Other>
impl<'tcx, Other> FnVal<'tcx, Other>
pub fn as_instance(self) -> InterpResult<'tcx, Instance<'tcx>>
Trait Implementations
impl<'tcx, Other: Copy> Copy for FnVal<'tcx, Other>
Auto Trait Implementations
impl<'tcx, Other> !RefUnwindSafe for FnVal<'tcx, Other>
impl<'tcx, Other> Send for FnVal<'tcx, Other>where
Other: Send,
impl<'tcx, Other> Sync for FnVal<'tcx, Other>where
Other: Sync,
impl<'tcx, Other> Unpin for FnVal<'tcx, Other>where
Other: Unpin,
impl<'tcx, Other> !UnwindSafe for FnVal<'tcx, Other>
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
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.