[−][src]Struct rustc_ap_rustc_target::abi::call::FnAbi
Metadata describing how the arguments to a native function should be passed in order to respect the native ABI.
I will do my best to describe this structure, but these comments are reverse-engineered and may be inaccurate. -NDM
Fields
args: Vec<ArgAbi<'a, Ty>>
The LLVM types of each argument.
ret: ArgAbi<'a, Ty>
LLVM return type.
c_variadic: bool
fixed_count: usize
The count of non-variadic arguments.
Should only be different from args.len() when c_variadic is true. This can be used to know whether an argument is variadic or not.
conv: Conv
can_unwind: bool
Implementations
impl<'a, Ty> FnAbi<'a, Ty>
[src]
pub fn adjust_for_cabi<C>(&mut self, cx: &C, abi: Abi) -> Result<(), String> where
Ty: TyAndLayoutMethods<'a, C> + Copy,
C: LayoutOf<Ty = Ty, TyAndLayout = TyAndLayout<'a, Ty>> + HasDataLayout + HasTargetSpec,
[src]
Ty: TyAndLayoutMethods<'a, C> + Copy,
C: LayoutOf<Ty = Ty, TyAndLayout = TyAndLayout<'a, Ty>> + HasDataLayout + HasTargetSpec,
Trait Implementations
Auto Trait Implementations
impl<'a, Ty> RefUnwindSafe for FnAbi<'a, Ty> where
Ty: RefUnwindSafe,
Ty: RefUnwindSafe,
impl<'a, Ty> Send for FnAbi<'a, Ty> where
Ty: Send,
Ty: Send,
impl<'a, Ty> Sync for FnAbi<'a, Ty> where
Ty: Sync,
Ty: Sync,
impl<'a, Ty> Unpin for FnAbi<'a, Ty> where
Ty: Unpin,
Ty: Unpin,
impl<'a, Ty> UnwindSafe for FnAbi<'a, Ty> where
Ty: UnwindSafe,
Ty: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeResult<T> for T
[src]
type Error = !
fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T
[src]
fn to_result(Self) -> Result<T, <T as MaybeResult<T>>::Error>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,