pub struct VirtualMethodSlot {
pub index: usize,
pub function: Option<FunctionId>,
}Expand description
A virtual method slot in a class’s vtable.
Fields§
§index: usizeSlot index in the vtable.
function: Option<FunctionId>Function ID that occupies this slot, or None for pure virtual.
Trait Implementations§
Source§impl Clone for VirtualMethodSlot
impl Clone for VirtualMethodSlot
Source§fn clone(&self) -> VirtualMethodSlot
fn clone(&self) -> VirtualMethodSlot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VirtualMethodSlot
impl Debug for VirtualMethodSlot
Source§impl<'de> Deserialize<'de> for VirtualMethodSlot
impl<'de> Deserialize<'de> for VirtualMethodSlot
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
Source§impl PartialEq for VirtualMethodSlot
impl PartialEq for VirtualMethodSlot
Source§impl Serialize for VirtualMethodSlot
impl Serialize for VirtualMethodSlot
impl Eq for VirtualMethodSlot
impl StructuralPartialEq for VirtualMethodSlot
Auto Trait Implementations§
impl Freeze for VirtualMethodSlot
impl RefUnwindSafe for VirtualMethodSlot
impl Send for VirtualMethodSlot
impl Sync for VirtualMethodSlot
impl Unpin for VirtualMethodSlot
impl UnsafeUnpin for VirtualMethodSlot
impl UnwindSafe for VirtualMethodSlot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.