pub struct TypeInfoIndex { /* private fields */ }Expand description
The id each type was interned under when a TypeInfoTable was collected.
TypeInfoTable::type_id finds a type by comparing it with every entry in
turn, which is quadratic over a program’s types; a collected type is found
here directly.
Implementations§
Source§impl TypeInfoIndex
impl TypeInfoIndex
Sourcepub fn object_type_id(
&self,
table: &TypeInfoTable,
ty: &Type,
) -> Option<TypeInfoId>
pub fn object_type_id( &self, table: &TypeInfoTable, ty: &Type, ) -> Option<TypeInfoId>
TypeInfoTable::object_type_id, looking a collected type up directly.
Trait Implementations§
Source§impl Debug for TypeInfoIndex
impl Debug for TypeInfoIndex
Auto Trait Implementations§
impl Freeze for TypeInfoIndex
impl RefUnwindSafe for TypeInfoIndex
impl Send for TypeInfoIndex
impl Sync for TypeInfoIndex
impl Unpin for TypeInfoIndex
impl UnsafeUnpin for TypeInfoIndex
impl UnwindSafe for TypeInfoIndex
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