MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_global

Method is_global

crates/codegen/src/symboltable.rs:223–228  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

221 }
222
223 pub const fn is_global(&self) -> bool {
224 matches!(
225 self.scope,
226 SymbolScope::GlobalExplicit | SymbolScope::GlobalImplicit
227 )
228 }
229
230 pub const fn is_local(&self) -> bool {
231 matches!(self.scope, SymbolScope::Local | SymbolScope::Cell)

Callers 2

register_nameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected