pub struct VPtr<T, Trait: ?Sized>where
T: HasVPtr<Trait>,{ /* private fields */ }Expand description
Represent a pointer to a virtual table to the trait Trait that is to be embedded in
a structure T
One should not need to use this structure directly, it is going to be created by the vptr
procedural macro.
Implementations§
Trait Implementations§
Source§impl<T, Trait: PartialOrd + ?Sized> PartialOrd for VPtr<T, Trait>where
T: HasVPtr<Trait> + PartialOrd,
impl<T, Trait: PartialOrd + ?Sized> PartialOrd for VPtr<T, Trait>where
T: HasVPtr<Trait> + PartialOrd,
impl<T, Trait: Copy + ?Sized> Copy for VPtr<T, Trait>
impl<T, Trait: Eq + ?Sized> Eq for VPtr<T, Trait>
impl<T, Trait: ?Sized> StructuralPartialEq for VPtr<T, Trait>where
T: HasVPtr<Trait>,
Auto Trait Implementations§
impl<T, Trait> Freeze for VPtr<T, Trait>where
Trait: ?Sized,
impl<T, Trait> RefUnwindSafe for VPtr<T, Trait>
impl<T, Trait> !Send for VPtr<T, Trait>
impl<T, Trait> !Sync for VPtr<T, Trait>
impl<T, Trait> Unpin for VPtr<T, Trait>where
Trait: ?Sized,
impl<T, Trait> UnwindSafe for VPtr<T, Trait>
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