[−][src]Struct rustc_codegen_llvm::abi::FnType
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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<ArgType<'a, Ty>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
The LLVM types of each argument.
ret: ArgType<'a, Ty>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
LLVM return type.
variadic: bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
conv: Conv
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl<'a, Ty> FnType<'a, Ty>
[src]
impl<'a, Ty> FnType<'a, Ty>
pub fn adjust_for_cabi<C>(&mut self, cx: C, abi: Abi) -> Result<(), String> where
C: LayoutOf<Ty = Ty, TyLayout = TyLayout<'a, Ty>> + HasDataLayout + HasTargetSpec,
Ty: TyLayoutMethods<'a, C> + Copy,
[src]
pub fn adjust_for_cabi<C>(&mut self, cx: C, abi: Abi) -> Result<(), String> where
C: LayoutOf<Ty = Ty, TyLayout = TyLayout<'a, Ty>> + HasDataLayout + HasTargetSpec,
Ty: TyLayoutMethods<'a, C> + Copy,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl<'a, Ty> Debug for FnType<'a, Ty> where
Ty: Debug,
[src]
impl<'a, Ty> Debug for FnType<'a, Ty> where
Ty: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'tcx> FnTypeExt<'tcx> for FnType<'tcx, Ty<'tcx>>
[src]
impl<'tcx> FnTypeExt<'tcx> for FnType<'tcx, Ty<'tcx>>
fn of_instance<'ll>(
cx: &CodegenCx<'ll, 'tcx>,
instance: &Instance<'tcx>
) -> Self
[src]
fn of_instance<'ll>(
cx: &CodegenCx<'ll, 'tcx>,
instance: &Instance<'tcx>
) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn new<'ll>(
cx: &CodegenCx<'ll, 'tcx>,
sig: FnSig<'tcx>,
extra_args: &[Ty<'tcx>]
) -> Self
[src]
fn new<'ll>(
cx: &CodegenCx<'ll, 'tcx>,
sig: FnSig<'tcx>,
extra_args: &[Ty<'tcx>]
) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn new_vtable<'ll>(
cx: &CodegenCx<'ll, 'tcx>,
sig: FnSig<'tcx>,
extra_args: &[Ty<'tcx>]
) -> Self
[src]
fn new_vtable<'ll>(
cx: &CodegenCx<'ll, 'tcx>,
sig: FnSig<'tcx>,
extra_args: &[Ty<'tcx>]
) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn new_internal<'ll>(
cx: &CodegenCx<'ll, 'tcx>,
sig: FnSig<'tcx>,
extra_args: &[Ty<'tcx>],
mk_arg_type: impl Fn(Ty<'tcx>, Option<usize>) -> ArgType<'tcx, Ty<'tcx>>
) -> Self
[src]
fn new_internal<'ll>(
cx: &CodegenCx<'ll, 'tcx>,
sig: FnSig<'tcx>,
extra_args: &[Ty<'tcx>],
mk_arg_type: impl Fn(Ty<'tcx>, Option<usize>) -> ArgType<'tcx, Ty<'tcx>>
) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn adjust_for_abi<'ll>(&mut self, cx: &CodegenCx<'ll, 'tcx>, abi: Abi)
[src]
fn adjust_for_abi<'ll>(&mut self, cx: &CodegenCx<'ll, 'tcx>, abi: Abi)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn llvm_type<'ll>(&self, cx: &CodegenCx<'ll, 'tcx>) -> &'ll Type
[src]
fn llvm_type<'ll>(&self, cx: &CodegenCx<'ll, 'tcx>) -> &'ll Type
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn llvm_cconv(&self) -> CallConv
[src]
fn llvm_cconv(&self) -> CallConv
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn apply_attrs_llfn<'ll>(&self, llfn: &'ll Value)
[src]
fn apply_attrs_llfn<'ll>(&self, llfn: &'ll Value)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn apply_attrs_callsite<'a, 'll>(
&self,
bx: &Builder<'a, 'll, 'tcx>,
callsite: &'ll Value
)
[src]
fn apply_attrs_callsite<'a, 'll>(
&self,
bx: &Builder<'a, 'll, 'tcx>,
callsite: &'ll Value
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Auto Trait Implementations
impl<'a, Ty> Send for FnType<'a, Ty> where
Ty: Send,
impl<'a, Ty> Send for FnType<'a, Ty> where
Ty: Send,
impl<'a, Ty> Sync for FnType<'a, Ty> where
Ty: Sync,
impl<'a, Ty> Sync for FnType<'a, Ty> where
Ty: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T
[src]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<E> SpecializationError for E
[src]
impl<E> SpecializationError for E
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
[src]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S
is the encoder/decoder state type, T
is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> Erased for T
impl<T> Erased for T
impl<T> MaybeResult for T
[src]
impl<T> MaybeResult for T
fn from_ok(x: T) -> T
[src]
fn from_ok(x: T) -> T
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> T,
[src]
fn map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> T,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<'a, T> Captures for T where
T: ?Sized,
[src]
impl<'a, T> Captures for T where
T: ?Sized,