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

Method new

src/pythonrun.rs:172–174  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

170 /// Creates a new instance of `GILProtected`.
171 #[inline]
172 pub const fn new(data: T) -> GILProtected<T> {
173 GILProtected { data }
174 }
175
176 /// Returns a shared reference to the data stored in the `GILProtected`.
177 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected