Skip to main content

LoadedSource

Struct LoadedSource 

Source
pub struct LoadedSource { /* private fields */ }
Expand description

Immutable source-plus-normalized-document owner returned by format loaders.

This type intentionally provides no mutable document reference and no operation that separates live facts from a mutable Document.

Implementations§

Source§

impl LoadedSource

Source

pub const fn document(&self) -> &Document

Borrow the normalized document without permitting mutation beside live facts.

Source

pub fn source_facts(&self) -> SourceFactsViewV1<'_>

Borrow the V1 facts together with the canonical existing source skeleton projection.

Source

pub const fn dependency_closure(&self) -> &DependencyClosureV1

Borrow the bounded dependency closure captured during this same load.

Source

pub fn with_exact_source_timing( self, timing: ExactSourceTimingV1, ) -> Result<Self, ExactSourceTimingContractError>

Attach bounded exact timing evidence produced by the same loader parse.

§Errors

Returns ExactSourceTimingContractError when the exact clip prefix or coverage does not match the existing V1 clip domain.

Source

pub const fn exact_source_timing(&self) -> Option<&ExactSourceTimingV1>

Borrow exact source timing evidence when this loader retained it.

Sources produced by callers that retain only legacy V1 facts return None.

Source

pub fn with_raw_gltf_addressability_inventory( self, inventory: RawGltfAddressabilityInventoryV1, ) -> Result<Self, RawGltfAddressabilityBindingErrorV1>

Attach bounded raw glTF addressability evidence from this exact load.

§Errors

Returns RawGltfAddressabilityBindingErrorV1 when the inventory is invalid, belongs to a non-glTF source, or disagrees with the exact primary input or dependency closure already bound to this source.

Source

pub const fn raw_gltf_addressability_inventory( &self, ) -> Option<&RawGltfAddressabilityInventoryV1>

Borrow same-load raw glTF scene/node/skin/path evidence when retained.

Source

pub fn with_raw_scene_attachment_inventory( self, inventory: RawSceneAttachmentInventoryV1, ) -> Result<Self, RawSceneAttachmentBindingError>

Attach bounded raw scene/attachment evidence from this exact glTF load.

§Errors

Returns RawSceneAttachmentBindingError when the inventory does not bind this source’s exact primary identity, a glTF container, or the canonical source-skeleton evidence retained beside this document.

Source

pub const fn raw_scene_attachment_inventory( &self, ) -> Option<&RawSceneAttachmentInventoryV1>

Borrow same-load raw scene/attachment evidence when the loader retained it.

Legacy and non-glTF producers return None rather than inferring source presence from normalized mesh assets.

Source

pub fn with_raw_transform_path_inventory( self, inventory: RawTransformPathInventoryV1, ) -> Result<Self, RawTransformPathBindingError>

Attach bounded raw FBX transform-path evidence from this exact load.

§Errors

Returns RawTransformPathBindingError when the inventory is invalid, was not projected from FBX, identifies different primary bytes, or its same-load normalized bone count disagrees with the document.

Source

pub const fn raw_transform_path_inventory( &self, ) -> Option<&RawTransformPathInventoryV1>

Borrow same-load raw FBX transform-path evidence when retained.

Source

pub fn into_document(self) -> Document

Consume the owner and deliberately discard importer-sensitive source facts.

Trait Implementations§

Source§

impl Debug for LoadedSource

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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.

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

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.