pub enum MutFnCtx<'a> {
Free(FreeCtx),
Const(ConstCtx<'a>),
Mut(MutCtx<'a>),
}
Variants§
Implementations§
Source§impl<'a> MutFnCtx<'a>
impl<'a> MutFnCtx<'a>
pub fn reborrow(&mut self) -> MutFnCtx<'_>
pub fn borrow(&self) -> Option<&Ctx>
pub fn to_const(self) -> ConstFnCtx<'a>
pub fn get_ref(self, name: Symbol) -> Result<&'a Val, CtxError>
pub fn get_ref_mut(self, name: Symbol) -> Result<&'a mut Val, CtxError>
pub fn is_assignable(self, name: Symbol) -> bool
Auto Trait Implementations§
impl<'a> Freeze for MutFnCtx<'a>
impl<'a> !RefUnwindSafe for MutFnCtx<'a>
impl<'a> !Send for MutFnCtx<'a>
impl<'a> !Sync for MutFnCtx<'a>
impl<'a> Unpin for MutFnCtx<'a>
impl<'a> !UnwindSafe for MutFnCtx<'a>
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