pub struct LateBoundInput { /* private fields */ }Expand description
One named, deterministic late-bound input to a scoped component factory.
Implementations§
Source§impl LateBoundInput
impl LateBoundInput
Sourcepub const fn new(
name: ParameterName,
source: LateBoundSource,
expected: ParameterValueKind,
coercion: ParameterCoercion,
missing: MissingParameterPolicy,
) -> Self
pub const fn new( name: ParameterName, source: LateBoundSource, expected: ParameterValueKind, coercion: ParameterCoercion, missing: MissingParameterPolicy, ) -> Self
Declares one late-bound input.
Sourcepub const fn name(&self) -> &ParameterName
pub const fn name(&self) -> &ParameterName
Borrows the stable factory-input name.
Sourcepub const fn source(&self) -> &LateBoundSource
pub const fn source(&self) -> &LateBoundSource
Borrows the structured source declaration.
Sourcepub const fn expected_kind(&self) -> ParameterValueKind
pub const fn expected_kind(&self) -> ParameterValueKind
Returns the type required by the factory input.
Sourcepub const fn coercion(&self) -> ParameterCoercion
pub const fn coercion(&self) -> ParameterCoercion
Returns the deterministic coercion policy.
Sourcepub const fn missing_policy(&self) -> MissingParameterPolicy
pub const fn missing_policy(&self) -> MissingParameterPolicy
Returns missing-source behavior.
Trait Implementations§
Source§impl Clone for LateBoundInput
impl Clone for LateBoundInput
Source§impl Debug for LateBoundInput
impl Debug for LateBoundInput
impl Eq for LateBoundInput
Source§impl PartialEq for LateBoundInput
impl PartialEq for LateBoundInput
impl StructuralPartialEq for LateBoundInput
Auto Trait Implementations§
impl Forget for LateBoundInput
impl Freeze for LateBoundInput
impl Move for LateBoundInput
impl RefUnwindSafe for LateBoundInput
impl Send for LateBoundInput
impl Sync for LateBoundInput
impl Unpin for LateBoundInput
impl UnsafeUnpin for LateBoundInput
impl UnwindSafe for LateBoundInput
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