Type Alias TypeDefinitionTarget

Source
pub type TypeDefinitionTarget = DefinitionTarget<TypeDefinitionMarker>;
Expand description

Type definition target.

Aliased Type§

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

Fields§

§index: usize

Index in the specification’s respective definition map.

Trait Implementations§

Source§

impl<'a> FetchTarget<'a, TypeDefinition> for TypeDefinitionTarget

Source§

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

Fetch the map reference containing the targeted item.
Source§

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