Type Alias RelatingParameterTarget

Source
pub type RelatingParameterTarget = IndexTarget<RelationDefinitionMarker, RelatingParameterMarker>;
Expand description

Relating parameter target inside a relation definition.

Aliased Type§

pub struct RelatingParameterTarget {
    pub definition: DefinitionTarget<RelationDefinitionMarker>,
    pub index: usize,
    /* private fields */
}

Fields§

§definition: DefinitionTarget<RelationDefinitionMarker>

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, RelationParameter> for RelatingParameterTarget

Source§

fn fetch_values( &self, spec: &'a Specification, ) -> Result<&'a [RelationParameter], TargetError<Self>>

Fetch the map reference containing the targeted item.
Source§

fn fetch_values_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut [RelationParameter], TargetError<Self>>

Fetch the mutable map reference containing the targeted item.
Source§

fn index(&self) -> usize

The index to access in the selected map.
Source§

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>>

Fetch a mutable reference to the target from the specification.