Enum stable_mir::abi::PassMode
source · pub enum PassMode {
Ignore,
Direct(Opaque),
Pair(Opaque, Opaque),
Cast {
pad_i32: bool,
cast: Opaque,
},
Indirect {
attrs: Opaque,
meta_attrs: Opaque,
on_stack: bool,
},
}
Expand description
How a function argument should be passed in to the target function.
Variants§
Ignore
Ignore the argument.
The argument is either uninhabited or a ZST.
Direct(Opaque)
Pass the argument directly.
The argument has a layout abi of Scalar
or Vector
.
Pair(Opaque, Opaque)
Pass a pair’s elements directly in two arguments.
The argument has a layout abi of ScalarPair
.
Cast
Pass the argument after casting it.
Indirect
Pass the argument indirectly via a hidden pointer.
Trait Implementations§
impl Eq for PassMode
impl StructuralPartialEq for PassMode
Auto Trait Implementations§
impl Freeze for PassMode
impl RefUnwindSafe for PassMode
impl Send for PassMode
impl Sync for PassMode
impl Unpin for PassMode
impl UnwindSafe for PassMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes
Size for each variant:
Ignore
: 0 bytesDirect
: 31 bytesPair
: 55 bytesCast
: 31 bytesIndirect
: 55 bytes