pub struct VtableEntry {
pub name: Option<String>,
pub mangled_name: Option<String>,
pub va: Va,
pub size: u64,
pub slots: Vec<VtableSlot>,
}Expand description
The VtableEntry type.
Fields§
§name: Option<String>The name field.
mangled_name: Option<String>The mangled_name field.
va: VaThe va field.
size: u64The size field.
slots: Vec<VtableSlot>The slots field.
Implementations§
Source§impl VtableEntry
impl VtableEntry
Sourcepub fn function_slots(&self) -> impl Iterator<Item = (usize, &VtableSlot)>
pub fn function_slots(&self) -> impl Iterator<Item = (usize, &VtableSlot)>
Return only the function slots (excluding offset-to-top and typeinfo header slots).
Sourcepub fn function_slot_count(&self) -> usize
pub fn function_slot_count(&self) -> usize
Number of function slots (excluding header slots).
Sourcepub fn find_slot_by_name(
&self,
method_name: &str,
) -> Option<(&VtableSlot, usize)>
pub fn find_slot_by_name( &self, method_name: &str, ) -> Option<(&VtableSlot, usize)>
Find a function slot by matching the demangled target name.
Returns the slot and its function-slot index (0-based, excluding header slots).
The match checks whether the demangled function name contains method_name.
Sourcepub fn function_slot_at(&self, index: usize) -> Option<&VtableSlot>
pub fn function_slot_at(&self, index: usize) -> Option<&VtableSlot>
Get a function slot by its 0-based function-slot index (excluding header slots like offset-to-top and typeinfo).
Trait Implementations§
Source§impl Clone for VtableEntry
impl Clone for VtableEntry
Source§impl Debug for VtableEntry
impl Debug for VtableEntry
Source§impl<'de> Deserialize<'de> for VtableEntry
impl<'de> Deserialize<'de> for VtableEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VtableEntry
impl RefUnwindSafe for VtableEntry
impl Send for VtableEntry
impl Sync for VtableEntry
impl Unpin for VtableEntry
impl UnsafeUnpin for VtableEntry
impl UnwindSafe for VtableEntry
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