pub struct InputDef {
pub name: String,
pub default: Value,
pub port_type: PortType,
pub kind: InputKind,
pub type_origin: TypeOrigin,
pub converts_to: Option<PortType>,
}Expand description
Definition of a named input to the Polydat graph.
All inputs — coordinates, iteration externs, and external-write ports
— are defined uniformly. Coordinates default to Value::U64(0),
captures default to Value::None (unset until a capture writes
to them) or to their declared default. The kind field carries
the lifecycle classification used by the const-binding contract
(evaluation_model.md, “Const Binding Contract”).
Fields§
§name: StringInput name (e.g., “cycle”, “username”).
default: ValueDefault value. Coordinates default to U64(0), captures to their declared default (or None if unset).
port_type: PortTypeThe declared port type for this input. Used by the assembler for type checking when wiring nodes to this input.
kind: InputKindLifecycle classification. The assembler’s coordinate inputs
are Coordinate; the DSL compiler sets IterationExtern for
iteration externs and ExternalWrite for extern ports.
type_origin: TypeOriginWhether the author wrote this input’s type or the compiler
inferred it (input_variance.md §3). An inferred input is open:
the host may write a value of another type, and whether the
compiler converts it is CompileOptions::input_variance’s call.
converts_to: Option<PortType>For a converted input: the type its consumers read, which is
what the input reports as its type. The slot itself is Dyn
and holds the value as written; None for every other input.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InputDef
impl !UnwindSafe for InputDef
impl Forget for InputDef
impl Freeze for InputDefwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
*const ArcInner<Value> is !null: Freeze,
PhantomData<ArcInner<Value>>: Freeze,
*const dyn ReflectedValue is !null: Freeze,
PhantomData<dyn ReflectedValue>: Freeze,
*const ArcInner<dyn Any + Send + Sync> is !null: Freeze,
PhantomData<ArcInner<dyn Any + Send + Sync>>: Freeze,
*const ArcInner<OrdinalSet> is !null: Freeze,
PhantomData<ArcInner<OrdinalSet>>: Freeze,
*const ArcInner<PredicateForms> is !null: Freeze,
PhantomData<ArcInner<PredicateForms>>: Freeze,
*const ArcInner<RecordForms> is !null: Freeze,
PhantomData<ArcInner<RecordForms>>: Freeze,
*const f32: Freeze,
*const i32: Freeze,
*const f64: Freeze,
*const i64: Freeze,
*const f16: Freeze,
*const i16: Freeze,
*const i8: Freeze,
impl Move for InputDef
impl Send for InputDefwhere
RawVecInner: Send,
Arc<str>: Send,
Arc<[u8]>: Send,
Arc<Value>: Send,
BoxRaw<dyn ReflectedValue>: Send,
Arc<dyn Any + Send + Sync>: Send,
Arc<OrdinalSet>: Send,
Arc<PredicateForms>: Send,
Arc<RecordForms>: Send,
SliceArc<f32>: Send,
SliceArc<i32>: Send,
SliceArc<f64>: Send,
SliceArc<i64>: Send,
SliceArc<f16>: Send,
SliceArc<i16>: Send,
SliceArc<i8>: Send,
impl Sync for InputDefwhere
RawVecInner: Sync,
Arc<str>: Sync,
Arc<[u8]>: Sync,
Arc<Value>: Sync,
BoxRaw<dyn ReflectedValue>: Sync,
Arc<dyn Any + Send + Sync>: Sync,
Arc<OrdinalSet>: Sync,
Arc<PredicateForms>: Sync,
Arc<RecordForms>: Sync,
SliceArc<f32>: Sync,
SliceArc<i32>: Sync,
SliceArc<f64>: Sync,
SliceArc<i64>: Sync,
SliceArc<f16>: Sync,
SliceArc<i16>: Sync,
SliceArc<i8>: Sync,
impl Unpin for InputDefwhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
Arc<[u8]>: Unpin,
Arc<Value>: Unpin,
Box<dyn ReflectedValue>: Unpin,
Arc<dyn Any + Send + Sync>: Unpin,
Arc<OrdinalSet>: Unpin,
Arc<PredicateForms>: Unpin,
Arc<RecordForms>: Unpin,
*const f32: Unpin,
*const i32: Unpin,
*const f64: Unpin,
*const i64: Unpin,
*const f16: Unpin,
*const i16: Unpin,
*const i8: Unpin,
impl UnsafeUnpin for InputDefwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
*const ArcInner<Value> is !null: UnsafeUnpin,
PhantomData<ArcInner<Value>>: UnsafeUnpin,
*const dyn ReflectedValue is !null: UnsafeUnpin,
PhantomData<dyn ReflectedValue>: UnsafeUnpin,
*const ArcInner<dyn Any + Send + Sync> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Any + Send + Sync>>: UnsafeUnpin,
*const ArcInner<OrdinalSet> is !null: UnsafeUnpin,
PhantomData<ArcInner<OrdinalSet>>: UnsafeUnpin,
*const ArcInner<PredicateForms> is !null: UnsafeUnpin,
PhantomData<ArcInner<PredicateForms>>: UnsafeUnpin,
*const ArcInner<RecordForms> is !null: UnsafeUnpin,
PhantomData<ArcInner<RecordForms>>: UnsafeUnpin,
*const f32: UnsafeUnpin,
*const i32: UnsafeUnpin,
*const f64: UnsafeUnpin,
*const i64: UnsafeUnpin,
*const f16: UnsafeUnpin,
*const i16: UnsafeUnpin,
*const i8: UnsafeUnpin,
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
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> ⓘ
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> ⓘ
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