[−][src]Trait heterovec::HeteroSizedPush
Types that can be pushed onto a HeteroSizedVec
.
Not meant to be implemented outside of the heterovec
crate.
Required methods
unsafe fn elem_size(&self) -> usize
unsafe fn elem_align(&self) -> usize
unsafe fn elem_ptr(&self) -> *const T
unsafe fn elem_drop_handler(&self) -> fn(_: *mut u8, _: usize)
unsafe fn outer_drop(&mut self)
Assume that ownership of the pointee has been taken through unsafe
means, but if there is some destructable wrapper around that
(eg. a Box
), clean that up, but without dropping the inner element.