pub(crate) fn try_get<'a>(&'a self, name: &str) -> Option<&'a T> {
        for scope in self.scopes.iter().rev() {
            if let Some(current) = scope.locals.get(name) {
                return Some(current);
            }

            // don't look past isolate scopes.
            if let ScopeKind::Isolate = scope.kind {
                break;
            }
        }

        None
    }
/// Try to get the value out from the scopes.
Try to get the value out from the scopes.
Try to get the value out from the scopes .
pub(crate) fn try_get<'a>(&'a self, name: &str) -> Option<&'a T> {
        for scope in self.scopes.iter().rev() {
            if let Some(current) = scope.locals.get(name) {
                return Some(current);
            }
            // don't look past isolate scopes.
            if let ScopeKind::Isolate = scope.kind {
                break;
            }
        }
        None
    }
pub ( crate ) fn try_get < ' a > ( & ' a self , name : & str ) -> Option < & ' a T > { for scope in self . scopes . iter ( ) . rev ( ) { if let Some ( current ) = scope . locals . get ( name ) { return Some ( current ) ; } // don't look past isolate scopes. if let ScopeKind :: Isolate = scope . kind { break ; } } None }
Try to get the value out from the scopes.
Try to get the value out from the scopes .
&'a self
name
&str
&'a self
name
&str