Enum rustc_mir::interpret::memory::FnVal [−][src]
pub enum FnVal<'tcx, Other> {
Instance(Instance<'tcx>),
Other(Other),
}Expand description
The value of a function pointer.
Variants
Instance(Instance<'tcx>)Implementations
impl<'tcx, Other> FnVal<'tcx, Other>[src]
impl<'tcx, Other> FnVal<'tcx, Other>[src]pub fn as_instance(self) -> InterpResult<'tcx, Instance<'tcx>>[src]
Trait Implementations
impl<'tcx, Other: Copy> Copy 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,
Other: Unpin,
impl<'tcx, Other> !UnwindSafe for FnVal<'tcx, Other>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]