[−][src]Enum rustc_mir::shim::Adjustment

pub(in shim) enum Adjustment {
    Identity,
    Deref,
    RefMut,
}

Variants

Identity

Pass the receiver as-is.

Deref

We get passed &[mut] self and call the target with *self.

This either copies self (if Self: Copy, eg. for function items), or moves out of it (for VtableShim, which effectively is passed &own Self).

RefMut

We get passed self: Self and call the target with &mut self.

In this case we need to ensure that the Self is dropped after the call, as the callee won't do it for us.

Trait Implementations

impl Clone for Adjustment[src]

impl Copy for Adjustment[src]

impl Debug for Adjustment[src]

impl PartialEq<Adjustment> for Adjustment[src]

impl StructuralPartialEq for Adjustment[src]

Auto Trait Implementations

impl RefUnwindSafe for Adjustment

impl Send for Adjustment

impl Sync for Adjustment

impl Unpin for Adjustment

impl UnwindSafe for Adjustment

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]