Skip to main content

ObjectIndex

Struct ObjectIndex 

Source
pub struct ObjectIndex<'a> { /* private fields */ }
Expand description

Borrowed explicit-object index. Building it resolves parents, rejects cycles and ambiguous identities, and distinguishes nested from inline objects. Equipment references are resolved on demand; no class schema or defaults are inferred here. Dynamic objects, namespace blocks and relative/wildcard references require further interpretation and are not silently approximated.

Implementations§

Source§

impl ObjectIndex<'_>

Source

pub fn declared_coordinates(&self) -> Result<Vec<GlmCoordinates>, Error>

Evaluate coordinate assignments in expanded source order. Native (name.latitude) / (name.longitude) references copy the value at the assignment, not the referenced object’s eventual value. Only already named objects are visible; an absent referenced axis stays absent.

The returned vector uses ObjectKey::ordinal. This is source state, not initialized engine geometry. Malformed/nonfinite/out-of-range coordinates fail explicitly instead of relying on native prefix parsing.

Source§

impl<'a> ObjectIndex<'a>

Source

pub fn objects(&self) -> &[GlmObject<'a>]

Source

pub fn get(&self, key: ObjectKey) -> Option<&GlmObject<'a>>

Source

pub fn parent(&self, key: ObjectKey) -> Option<ObjectKey>

Source

pub fn resolve_reference( &self, reference: &str, ) -> Result<Option<ObjectKey>, Error>

Resolve a name, class:explicit_id, or id:explicit_id. root is the native null reference. Anonymous objects do not acquire guessed aliases from their position in this index.

Source

pub fn resolve_property( &self, key: ObjectKey, name: &str, ) -> Result<Option<ObjectKey>, Error>

Resolve an object-valued property. Repeated reference assignments are refused until their native deferred-assignment ordering is qualified.

Trait Implementations§

Source§

impl<'a> Debug for ObjectIndex<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for ObjectIndex<'a>

§

impl<'a> RefUnwindSafe for ObjectIndex<'a>

§

impl<'a> Send for ObjectIndex<'a>

§

impl<'a> Sync for ObjectIndex<'a>

§

impl<'a> Unpin for ObjectIndex<'a>

§

impl<'a> UnsafeUnpin for ObjectIndex<'a>

§

impl<'a> UnwindSafe for ObjectIndex<'a>

Blanket Implementations§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> ByRef<T> for T

§

fn by_ref(&self) -> &T

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V