Type Alias ComponentDefinitionTarget

Source
pub type ComponentDefinitionTarget = DefinitionTarget<ComponentDefinitionMarker>;
Expand description

Component definition target.

Aliased Type§

pub struct ComponentDefinitionTarget {
    pub index: usize,
    /* private fields */
}

Fields§

§index: usize

Index in the specification’s respective definition map.

Trait Implementations§

Source§

impl<'a> FetchTarget<'a, ComponentDefinition> for ComponentDefinitionTarget

Source§

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

Fetch the map reference containing the targeted item.
Source§

fn fetch_values_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut [ComponentDefinition], 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.