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
impl LoadedSource
Sourcepub const fn document(&self) -> &Document
pub const fn document(&self) -> &Document
Borrow the normalized document without permitting mutation beside live facts.
Sourcepub fn source_facts(&self) -> SourceFactsViewV1<'_>
pub fn source_facts(&self) -> SourceFactsViewV1<'_>
Borrow the V1 facts together with the canonical existing source skeleton projection.
Sourcepub const fn dependency_closure(&self) -> &DependencyClosureV1
pub const fn dependency_closure(&self) -> &DependencyClosureV1
Borrow the bounded dependency closure captured during this same load.
Sourcepub fn with_exact_source_timing(
self,
timing: ExactSourceTimingV1,
) -> Result<Self, ExactSourceTimingContractError>
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.
Sourcepub const fn exact_source_timing(&self) -> Option<&ExactSourceTimingV1>
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.
Sourcepub fn with_raw_gltf_addressability_inventory(
self,
inventory: RawGltfAddressabilityInventoryV1,
) -> Result<Self, RawGltfAddressabilityBindingErrorV1>
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.
Sourcepub const fn raw_gltf_addressability_inventory(
&self,
) -> Option<&RawGltfAddressabilityInventoryV1>
pub const fn raw_gltf_addressability_inventory( &self, ) -> Option<&RawGltfAddressabilityInventoryV1>
Borrow same-load raw glTF scene/node/skin/path evidence when retained.
Sourcepub fn with_raw_scene_attachment_inventory(
self,
inventory: RawSceneAttachmentInventoryV1,
) -> Result<Self, RawSceneAttachmentBindingError>
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.
Sourcepub const fn raw_scene_attachment_inventory(
&self,
) -> Option<&RawSceneAttachmentInventoryV1>
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.
Sourcepub fn with_raw_transform_path_inventory(
self,
inventory: RawTransformPathInventoryV1,
) -> Result<Self, RawTransformPathBindingError>
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.
Sourcepub const fn raw_transform_path_inventory(
&self,
) -> Option<&RawTransformPathInventoryV1>
pub const fn raw_transform_path_inventory( &self, ) -> Option<&RawTransformPathInventoryV1>
Borrow same-load raw FBX transform-path evidence when retained.
Sourcepub fn into_document(self) -> Document
pub fn into_document(self) -> Document
Consume the owner and deliberately discard importer-sensitive source facts.