[][src]Struct zerogc::AssumeNotTraced

#[repr(transparent)]pub struct AssumeNotTraced<T>(_);

A wrapper type that assumes its contents don't need to be traced

Implementations

impl<T> AssumeNotTraced<T>[src]

pub unsafe fn new(value: T) -> Self[src]

Assume the specified value doesn't need to be traced

Safety

Undefined behavior if the value contains anything that need to be traced by a garbage collector.

pub fn into_inner(self) -> T[src]

Unwrap the inner value of this wrapper

Trait Implementations

impl<T: Clone> Clone for AssumeNotTraced<T>[src]

impl<T: Copy> Copy for AssumeNotTraced<T>[src]

impl<T: Debug> Debug for AssumeNotTraced<T>[src]

impl<T> Deref for AssumeNotTraced<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for AssumeNotTraced<T>[src]

impl<'new_gc, Id, T> GcBrand<'new_gc, Id> for AssumeNotTraced<T> where
    Id: CollectorId,
    T: GcBrand<'new_gc, Id>,
    <T as GcBrand<'new_gc, Id>>::Branded: Trace
[src]

type Branded = AssumeNotTraced<<T as GcBrand<'new_gc, Id>>::Branded>

This type with all garbage collected lifetimes changed to 'new_gc Read more

impl<T> GcSafe for AssumeNotTraced<T>[src]

No tracing implies GcSafe

impl<T> NullTrace for AssumeNotTraced<T>[src]

impl<T> Trace for AssumeNotTraced<T>[src]

impl<T> TraceImmutable for AssumeNotTraced<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for AssumeNotTraced<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for AssumeNotTraced<T> where
    T: Send
[src]

impl<T> Sync for AssumeNotTraced<T> where
    T: Sync
[src]

impl<T> Unpin for AssumeNotTraced<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for AssumeNotTraced<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.