Struct CopyOnDrop
pub(in ::slice::sort::shared::smallsort) struct CopyOnDrop<T> { pub(in ::slice::sort::shared::smallsort) src: *const T, pub(in ::slice::sort::shared::smallsort) dst: *mut T, pub(in ::slice::sort::shared::smallsort) len: usize }
Fields
src: *const Tdst: *mut Tlen: usize
Trait Implementations
impl<T> Drop for CopyOnDrop<T>
fn drop(&mut self)
Auto Trait Implementations
impl<T> !Send for CopyOnDrop<T>
impl<T> !Sync for CopyOnDrop<T>
impl<T> Freeze for CopyOnDrop<T>
where
*const T: Freeze,
*mut T: Freeze,
impl<T> RefUnwindSafe for CopyOnDrop<T>
where
*const T: RefUnwindSafe,
*mut T: RefUnwindSafe,
impl<T> Unpin for CopyOnDrop<T>
where
*const T: Unpin,
*mut T: Unpin,
impl<T> UnsafeUnpin for CopyOnDrop<T>
where
*const T: UnsafeUnpin,
*mut T: UnsafeUnpin,
impl<T> UnwindSafe for CopyOnDrop<T>
where
*const T: UnwindSafe,
*mut T: UnwindSafe,
Blanket Implementations
impl<T> Any for CopyOnDrop<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CopyOnDrop<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CopyOnDrop<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for CopyOnDrop<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for CopyOnDrop<T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for CopyOnDrop<T>
impl<T, U> Into<U> for CopyOnDrop<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CopyOnDrop<T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for CopyOnDrop<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>