pub struct IntrinsicDef {
pub id: IntrinsicId,
pub name: &'static str,
pub kind: IntrinsicKind,
pub category: Category,
pub requires_unchecked: bool,
pub preview: Option<PreviewFeature>,
pub runtime_fn: Option<&'static str>,
pub summary: &'static str,
pub description: &'static str,
pub examples: &'static [&'static str],
}Expand description
Metadata for one intrinsic. Instances live as const entries in
INTRINSICS; nothing in this type is runtime-mutable.
Fields§
§id: IntrinsicIdStable enum identity used for dispatch in consumer crates.
name: &'static strName as written in source (without the leading @).
kind: IntrinsicKindWhether the sole argument is a type (Type) or a normal expression list (Expr).
category: CategoryCategory used for doc rendering and by_category lookups.
requires_unchecked: boolIf true, calls must appear inside an unchecked block (enforced by sema).
preview: Option<PreviewFeature>Preview feature gate, if any. None means the intrinsic is stable.
runtime_fn: Option<&'static str>Extern symbol in gruel-runtime that implements this intrinsic, if the
codegen path lowers to a runtime call. None if the codegen emits LLVM
IR directly (e.g. pointer ops) or is otherwise self-contained.
summary: &'static strTerse one-line description used in the quick-reference table.
description: &'static strLonger markdown prose for the per-intrinsic detail section.
examples: &'static [&'static str]Sample code snippets rendered in the reference page.
Trait Implementations§
Source§impl Clone for IntrinsicDef
impl Clone for IntrinsicDef
Source§fn clone(&self) -> IntrinsicDef
fn clone(&self) -> IntrinsicDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more