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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more