Struct rustc_codegen_llvm::abi::CastTarget
source · pub struct CastTarget {
pub prefix: [Option<Reg>; 8],
pub rest: Uniform,
pub attrs: ArgAttributes,
}
Expand description
Describes the type used for PassMode::Cast
.
Passing arguments in this mode works as follows: the registers in the prefix
(the ones that
are Some
) get laid out one after the other (using repr(C)
layout rules). Then the
rest.unit
register type gets repeated often enough to cover rest.size
. This describes the
actual type used for the call; the Rust type of the argument is then transmuted to this ABI type
(and all data in the padding between the registers is dropped).
Fields§
§prefix: [Option<Reg>; 8]
§rest: Uniform
§attrs: ArgAttributes
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CastTarget
impl Send for CastTarget
impl Sync for CastTarget
impl Unpin for CastTarget
impl UnwindSafe for CastTarget
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
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: 168 bytes