Struct GapGuard

pub(in ::slice::sort::unstable::quicksort) struct GapGuard<T> { pub(in ::slice::sort::unstable::quicksort) pos: *mut T, pub(in ::slice::sort::unstable::quicksort) value: ManuallyDrop<T> }

Fields

pos: *mut T
value: ManuallyDrop<T>

Trait Implementations

impl<T> Drop for GapGuard<T>

fn drop(&mut self)

Auto Trait Implementations

impl<T> !Send for GapGuard<T>

impl<T> !Sync for GapGuard<T>

impl<T> Freeze for GapGuard<T> where *mut T: Freeze, ManuallyDrop<T>: Freeze,

impl<T> RefUnwindSafe for GapGuard<T> where *mut T: RefUnwindSafe, ManuallyDrop<T>: RefUnwindSafe,

impl<T> Unpin for GapGuard<T> where *mut T: Unpin, ManuallyDrop<T>: Unpin,

impl<T> UnsafeUnpin for GapGuard<T> where *mut T: UnsafeUnpin, ManuallyDrop<T>: UnsafeUnpin,

impl<T> UnwindSafe for GapGuard<T> where *mut T: UnwindSafe, ManuallyDrop<T>: UnwindSafe,

Blanket Implementations

impl<T> Any for GapGuard<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for GapGuard<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for GapGuard<T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for GapGuard<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for GapGuard<T> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for GapGuard<T>

impl<T, U> Into<U> for GapGuard<T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for GapGuard<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 GapGuard<T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>