Struct naga::compact::types::TypeTracer
source · pub struct TypeTracer<'a> {
pub types: &'a UniqueArena<Type>,
pub types_used: &'a mut HandleSet<Type>,
}
Fields§
§types: &'a UniqueArena<Type>
§types_used: &'a mut HandleSet<Type>
Implementations§
source§impl<'a> TypeTracer<'a>
impl<'a> TypeTracer<'a>
sourcepub fn trace_types(&mut self)
pub fn trace_types(&mut self)
Propagate usage through self.types
, starting with self.types_used
.
Treat self.types_used
as the initial set of “known
live” types, and follow through to identify all
transitively used types.
Auto Trait Implementations§
impl<'a> Freeze for TypeTracer<'a>
impl<'a> RefUnwindSafe for TypeTracer<'a>
impl<'a> Send for TypeTracer<'a>
impl<'a> Sync for TypeTracer<'a>
impl<'a> Unpin for TypeTracer<'a>
impl<'a> !UnwindSafe for TypeTracer<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more