Struct LocalHandle

struct LocalHandle { ... }

A handle to a garbage collector.

Implementations

impl LocalHandle

fn pin(self: &Self) -> Guard

Pins the handle.

fn is_pinned(self: &Self) -> bool

Returns true if the handle is pinned.

fn collector(self: &Self) -> &Collector

Returns the Collector associated with this handle.

impl Debug for LocalHandle

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Drop for LocalHandle

fn drop(self: &mut Self)

impl Freeze for LocalHandle

impl RefUnwindSafe for LocalHandle

impl Send for LocalHandle

impl Sync for LocalHandle

impl Unpin for LocalHandle

impl UnsafeUnpin for LocalHandle

impl UnwindSafe for LocalHandle

impl<T> Any for LocalHandle

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for LocalHandle

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for LocalHandle

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for LocalHandle

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for LocalHandle

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T, U> Into for LocalHandle

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for LocalHandle

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for LocalHandle

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>