Struct LocalHandle
struct LocalHandle { ... }
A handle to a garbage collector.
Implementations
impl LocalHandle
fn pin(self: &Self) -> GuardPins the handle.
fn is_pinned(self: &Self) -> boolReturns
trueif the handle is pinned.fn collector(self: &Self) -> &CollectorReturns the
Collectorassociated 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) -> TReturns the argument unchanged.
impl<T> Pointable for LocalHandle
unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T, U> Into for LocalHandle
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>