Struct runtime::core_objects::Function
source · [−]pub struct Function {
pub nargs: usize,
pub name: String,
pub context: Rc<GlobalContext>,
pub code: Vec<Op>,
pub context_id: ContextId,
pub least_ancestors: RwLock<Option<HashMap<ContextId, FrameId>>>,
}Expand description
A user defined function
Fields
nargs: usizename: Stringcontext: Rc<GlobalContext>code: Vec<Op>context_id: ContextIdleast_ancestors: RwLock<Option<HashMap<ContextId, FrameId>>>Auto Trait Implementations
impl !RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl !UnwindSafe for Function
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more