#[entry]
Expand description
Defines an entrypoint for staged code, which will be available as a proc macro. +
#[entry]
Expand description
Defines an entrypoint for staged code, which will be available as a proc macro.
The entrypoint must be a function that returns impl Quoted<T>
for some type T
.
The first parameter must always be a context, which defines lifetime bounds for
the generated code. This can usually just be a parameter of type BorrowBounds<'_>
,
diff --git a/doc/stageleft/attr.runtime.html b/doc/stageleft/attr.runtime.html
index ec413b6dbef2..05b3a96d98ec 100644
--- a/doc/stageleft/attr.runtime.html
+++ b/doc/stageleft/attr.runtime.html
@@ -1,3 +1,3 @@
-
#[runtime]
Expand description
Marks a chunk of code as being runtime-only, which means that no staged code in its crate can depend on it. +
Attribute Macro stageleft::top_level_mod
#[top_level_mod]
Expand description
A utility for declaring top-level public modules in a Stageleft crate that exports macros.
+Attribute Macro stageleft::top_level_mod
source · #[top_level_mod]
Expand description
A utility for declaring top-level public modules in a Stageleft crate that exports macros.
This gets around errors in compiling the macro crate when there
are pub mod
declarations at the top-level file.
This macro will only work on nightly with #![feature(proc_macro_hygiene)]
,
diff --git a/doc/stageleft/macro.q.html b/doc/stageleft/macro.q.html
index 850de32e3ccf..49e9fd20aa4d 100644
--- a/doc/stageleft/macro.q.html
+++ b/doc/stageleft/macro.q.html
@@ -1,4 +1,4 @@
-
q!() { /* proc-macro */ }
Expand description
Creates a quoted expression for Hydroflow+.
+q!() { /* proc-macro */ }
Expand description
Creates a quoted expression for Hydroflow+.
Creates a quoted expression, which can be typechecked but has its AST serialized
until it is spliced into a staged entrypoint. Returns a value which implements
Quoted<T>
, where T
is the type of the expression, and also may implement
diff --git a/doc/stageleft/macro.quse_fn.html b/doc/stageleft/macro.quse_fn.html
index 30807244123b..dcdc36a00209 100644
--- a/doc/stageleft/macro.quse_fn.html
+++ b/doc/stageleft/macro.quse_fn.html
@@ -1 +1 @@
-