pub unsafe trait GetDynDynTable<B: ?Sized + DynDynBase> {
type DynTarget: ?Sized + Unsize<B>;
// Required method
fn get_dyn_dyn_table(&self) -> DynDynTable;
}Expand description
A pointer to an object which has a DynDynTable associated with it.
§Safety
- If this type implements
Deref, then the reference returned by callingDeref::derefmust not change for the lifetime of this pointer unless the pointer itself is mutated. - If this type implements
DerefMut, then the reference returned by callingDerefMut::deref_mutmust not change for the lifetime of this pointer unless the pointer itself is mutated and must point to the same object as a reference returned by callingDeref::deref, including having identical metadata. Additionally, callingDerefMut::deref_mutmust not mutate the pointer. - If this type implements
Deref, then the reference returned by callingDeref::derefmust be unsize-coercible to a reference toGetDynDynTable::get_dyn_dyn_table. - If this type implements
Deref, then the returned table must be equivalent to callingGetDynDynTable::get_dyn_dyn_tableon a reference returned by callingDeref::deref. - If this type implements
DowncastUnchecked, then the result of callingDowncastUnchecked::downcast_uncheckedwith metadata retrieved from the table returned by callingGetDynDynTable::get_dyn_dyn_tableon this pointer shall be valid and safe to use.
Required Associated Types§
Required Methods§
Sourcefn get_dyn_dyn_table(&self) -> DynDynTable
fn get_dyn_dyn_table(&self) -> DynDynTable
Gets the DynDynTable for the object that this pointer points to.