pub struct InputDecl {
pub name: String,
pub ty: Option<String>,
pub span: Span,
}Expand description
One per-cycle kernel input slot.
Declared by input <name>[: <type>] (single) or
input (<name>[: <type>], ...) (tuple, sugar for N decls).
The name participates in the kernel’s input-port wiring just
like extern participates in its port set, but inputs are
driven by the runtime cycle pump (cursors, captures, etc.)
rather than by external port writes.
ty is None when the author omitted the annotation; typed
downstream by inference. Authors are encouraged to declare
the type for clarity and editor support.
Fields§
§name: StringThe input’s name.
ty: Option<String>The declared type keyword, if one was written.
span: SpanWhere the declaration appears.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputDecl
impl RefUnwindSafe for InputDecl
impl Send for InputDecl
impl Sync for InputDecl
impl Unpin for InputDecl
impl UnsafeUnpin for InputDecl
impl UnwindSafe for InputDecl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more