pub struct GILPool { /* private fields */ }๐Deprecated since 0.21.0:
GILPool has no function if PyO3โs deprecated GIL Refs API is not usedAvailable on crate feature
gil-refs only.Expand description
A RAII pool which PyO3 uses to store owned Python references.
See the Memory Management chapter of the guide for more information about how PyO3 uses
GILPool to manage memory.
Implementationsยง
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for GILPool
impl RefUnwindSafe for GILPool
impl !Send for GILPool
impl !Sync for GILPool
impl Unpin for GILPool
impl UnwindSafe for GILPool
Blanket Implementationsยง
sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more