pub struct TypeInfo {
pub concrete_type_id: u32,
pub vtable_for_bound: Option<Arc<VTable>>,
pub size_align: (u32, u32),
}Expand description
Runtime type information for method-generic parameters (§Q25.C.3).
Threaded through VTableEntry::Generic / Compound thunks so a
fn method<G: Bound>(&self, g: G) invocation through dyn T
dispatches operations on g correctly. concrete_type_id is the
IC-stabilization key per §Q25.C.6.
Fields§
§concrete_type_id: u32Concrete-type discriminator — matches VTable::concrete_type_id
when the generic argument is itself a trait-object.
vtable_for_bound: Option<Arc<VTable>>If the generic parameter has a trait bound (G: Bound), this is
the bound’s vtable for the concrete type. None when the
parameter is unbounded.
size_align: (u32, u32)Size and alignment of the concrete type, in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnsafeUnpin for TypeInfo
impl UnwindSafe for TypeInfo
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