MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / define

Method define

crates/gitql-core/src/environment.rs:149–151  ·  view source on GitHub ↗

Define in the current scope

(&mut self, str: String, data_type: Box<dyn DataType>)

Source from the content-addressed store, hash-verified

147
148 /// Define in the current scope
149 pub fn define(&mut self, str: String, data_type: Box<dyn DataType>) {
150 self.scopes.insert(str, data_type);
151 }
152
153 /// Define in the global scope
154 pub fn define_global(&mut self, str: String, data_type: Box<dyn DataType>) {

Calls

no outgoing calls

Tested by

no test coverage detected