pub type ProvidedValue<'tcx> = CodegenFnAttrs;
Expand description

This type alias specifies the type returned from query providers and the type used for decoding. For regular queries this is the declared returned type V, but arena_cache will use <V as Deref>::Target instead.

Implementations§

source§

impl CodegenFnAttrs

source

pub const EMPTY: &'static Self = _

source

pub const fn new() -> CodegenFnAttrs

source

pub fn requests_inline(&self) -> bool

Returns true if #[inline] or #[inline(always)] is present.

source

pub fn contains_extern_indicator(&self) -> bool

Returns true if it looks like this symbol needs to be exported, for example:

  • #[no_mangle] is present
  • #[export_name(...)] is present
  • #[linkage] is present

Trait Implementations§

source§

impl Clone for CodegenFnAttrs

source§

fn clone(&self) -> CodegenFnAttrs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CodegenFnAttrs

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'tcx, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for CodegenFnAttrs

source§

fn decode(__decoder: &mut __D) -> Self

source§

impl<'tcx, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for CodegenFnAttrs

source§

fn encode(&self, __encoder: &mut __E)

source§

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for CodegenFnAttrs

source§

fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )

source§

impl ParameterizedOverTcx for CodegenFnAttrs

§

type Value<'tcx> = CodegenFnAttrs

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:64 bytes