pub struct VTable {
pub trait_names: Vec<String>,
pub methods: HashMap<String, VTableEntry>,
}Expand description
Virtual method table for trait objects.
Maps method names to function IDs for dynamic dispatch.
Created when a concrete value is boxed into a dyn Trait.
Fields§
§trait_names: Vec<String>Trait names this vtable implements
methods: HashMap<String, VTableEntry>Map from method name to function ID (bytecode offset or closure)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VTable
impl RefUnwindSafe for VTable
impl Send for VTable
impl Sync for VTable
impl Unpin for VTable
impl UnsafeUnpin for VTable
impl UnwindSafe for VTable
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