MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / get

Method get

src/pythonrun.rs:180–182  ·  view source on GitHub ↗
(&'a self, _py: Python<'a>)

Source from the content-addressed store, hash-verified

178 /// Requires a `Python` instance as proof that the GIL is acquired.
179 #[inline]
180 pub fn get<'a>(&'a self, _py: Python<'a>) -> &'a T {
181 &self.data
182 }
183
184 /// Consumes the `GILProtected`, returning the wrapped value.
185 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected