pub trait Drop: TrackDrop {
// Required method
exec fn drop(
self,
Tracked(s): Tracked<&mut Self::State>,
Tracked(obl): Tracked<Self::Obligation>,
);
}Required Methods§
Sourceexec fn drop(
self,
Tracked(s): Tracked<&mut Self::State>,
Tracked(obl): Tracked<Self::Obligation>,
)
exec fn drop( self, Tracked(s): Tracked<&mut Self::State>, Tracked(obl): Tracked<Self::Obligation>, )
requires
self.drop_requires(*old(s), obl),ensuresself.drop_ensures(*old(s), *final(s), obl),Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.