silk.build.parameter.
Typed package parameters resolved by the build graph.
Import as Parameter with import silk.build.parameter { Parameter }.
Public declarations: 2.
Parameter#
pub interface ParameterA value admitted as a package parameter: text, boolean, fixed-width integer, enum, option, list,
or a record of those values. An empty implementation derives an enum or a record's public fields.
Records and enums also implement Schema so deferred values can be cached and restored.
Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorEncodes the value without losing its nominal enum identity, integer precision, or optional layers.
Implementation Parameter for bool#
impl Parameter for boolOperation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for String#
impl Parameter for StringOperation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for Option<T>#
impl<T: Parameter> Parameter for Option<T>Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for List<T>#
impl<T: Parameter> Parameter for List<T>Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for i8#
impl Parameter for i8Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for i16#
impl Parameter for i16Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for i32#
impl Parameter for i32Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for i64#
impl Parameter for i64Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for u8#
impl Parameter for u8Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for u16#
impl Parameter for u16Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for u32#
impl Parameter for u32Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut AllocatorImplementation Parameter for u64#
impl Parameter for u64Operation parameter#
effect fn parameter(self: &Self) -> ParameterValue
! StepFailure
? &mut Allocatordeferred#
pub effect fn deferred<T: Schema + Parameter + Transferable + 'static>(
value: Deferred<T>,
) -> Deferred<ParameterValue>
! StepFailure
? &mut AllocatorPreserves the producer dependency while encoding the parameter only when the graph runs.
Profiles: aarch64-apple-darwin, aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu-no-libc, x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu-no-libc, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2, x86_64-pc-windows-msvc, wasm64-unknown-unknown.