pub type ParameterTarget = IndexTarget<ComponentDefinitionMarker, ParameterMarker>;
Expand description
Parameter target inside a component definition.
Aliased Type§
pub struct ParameterTarget {
pub definition: DefinitionTarget<ComponentDefinitionMarker>,
pub index: usize,
/* private fields */
}
Fields§
§definition: DefinitionTarget<ComponentDefinitionMarker>
Index in the specification’s respective definition map.
index: usize
Index in the specification’s respective definition map.
Trait Implementations§
Source§impl<'a> FetchTarget<'a, Variable> for ParameterTarget
impl<'a> FetchTarget<'a, Variable> for ParameterTarget
Source§fn fetch_values(
&self,
spec: &'a Specification,
) -> Result<&'a [Variable], TargetError<Self>>
fn fetch_values( &self, spec: &'a Specification, ) -> Result<&'a [Variable], TargetError<Self>>
Fetch the map reference containing the targeted item.
Source§fn fetch_values_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut [Variable], TargetError<Self>>
fn fetch_values_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut [Variable], TargetError<Self>>
Fetch the mutable map reference containing the targeted item.
Source§fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
Fetch a reference to the target from the specification.
Source§fn fetch_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut V, TargetError<Self>>
fn fetch_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut V, TargetError<Self>>
Fetch a mutable reference to the target from the specification.