[−][src]Struct zerogc::AssumeNotTraced
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]
pub fn clone(&self) -> AssumeNotTraced<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for AssumeNotTraced<T>
[src]
impl<T: Debug> Debug for AssumeNotTraced<T>
[src]
impl<T> Deref for AssumeNotTraced<T>
[src]
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]
Id: CollectorId,
T: GcBrand<'new_gc, Id>,
<T as GcBrand<'new_gc, Id>>::Branded: Trace,
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
pub const NEEDS_DROP: bool
[src]
impl<T> NullTrace for AssumeNotTraced<T>
[src]
impl<T> Trace for AssumeNotTraced<T>
[src]
pub const NEEDS_TRACE: bool
[src]
pub fn visit<V: GcVisitor>(&mut self, _visitor: &mut V) -> Result<(), V::Err>
[src]
impl<T> TraceImmutable for AssumeNotTraced<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for AssumeNotTraced<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for AssumeNotTraced<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for AssumeNotTraced<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for AssumeNotTraced<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for AssumeNotTraced<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,