Enum mun_memory::mapping::Action[][src]

pub enum Action<T: TypeDesc + TypeMemory> {
    Cast {
        old_offset: usize,
        old_ty: T,
    },
    Copy {
        old_offset: usize,
    },
    Insert,
}

The Action to take when mapping memory from A to B.

Variants

Cast

Fields of Cast

old_offset: usizeold_ty: T
Copy

Fields of Copy

old_offset: usize
Insert

Trait Implementations

impl<T: Eq + TypeDesc + TypeMemory> Eq for Action<T>[src]

impl<T: PartialEq + TypeDesc + TypeMemory> PartialEq<Action<T>> for Action<T>[src]

impl<T: TypeDesc + TypeMemory> StructuralEq for Action<T>[src]

impl<T: TypeDesc + TypeMemory> StructuralPartialEq for Action<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Action<T> where
    T: RefUnwindSafe

impl<T> Send for Action<T>

impl<T> Sync for Action<T>

impl<T> Unpin for Action<T> where
    T: Unpin

impl<T> UnwindSafe for Action<T> where
    T: UnwindSafe

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, 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.