Struct Collector
pub struct Collector { /* private fields */ }
An epoch-based garbage collector.
Implementations
impl Collector
fn new() -> SelfCreates a new collector.
fn register(&self) -> LocalHandleRegisters a new handle for the collector.
Trait Implementations
impl Clone for Collector
fn clone(&self) -> SelfCreates another reference to the same garbage collector.
impl Debug for Collector
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Collector
fn default() -> Self
impl Eq for Collector
impl PartialEq for Collector
fn eq(&self, rhs: &Collector) -> boolChecks if both handles point to the same collector.
impl Send for Collector
impl Sync for Collector
Auto Trait Implementations
impl !RefUnwindSafe for Collector
impl !UnwindSafe for Collector
impl Freeze for Collector
impl Unpin for Collector
impl UnsafeUnpin for Collector
Blanket Implementations
impl<T> Any for Collector
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Collector
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Collector
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Collector
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Collector
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for Collector
const ALIGN: usize = const ALIGN: usize = mem::align_of::<T>();;type Init = T;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> ToOwned for Collector
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Collector
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Collector
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Collector
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>