pub struct RawGltfAddressabilityInventoryV1 { /* private fields */ }Expand description
Strict, canonical raw glTF addressability sidecar.
Implementations§
Source§impl RawGltfAddressabilityInventoryV1
impl RawGltfAddressabilityInventoryV1
Sourcepub fn new(
primary_input: InputIdentity,
dependency_closure: DependencyClosureV1,
input: RawGltfAddressabilityInventoryInputV1,
) -> Result<Self, RawGltfAddressabilityInventoryErrorV1>
pub fn new( primary_input: InputIdentity, dependency_closure: DependencyClosureV1, input: RawGltfAddressabilityInventoryInputV1, ) -> Result<Self, RawGltfAddressabilityInventoryErrorV1>
Construct and validate one exact same-load inventory.
§Errors
Returns RawGltfAddressabilityInventoryErrorV1 for mismatched
provenance, noncanonical prefixes, contradictory coverage, or a V1
collection, structural-reference, or text bound violation.
Sourcepub fn read_from(
reader: impl Read,
) -> Result<Self, RawGltfAddressabilityInventoryReadErrorV1>
pub fn read_from( reader: impl Read, ) -> Result<Self, RawGltfAddressabilityInventoryReadErrorV1>
Read one strict inventory through the immutable 256 MiB byte cap.
§Errors
Returns a typed I/O, N+1 size, JSON-shape, or semantic contract error.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Semantic inventory identifier.
Sourcepub const fn identity(&self) -> &InputIdentity
pub const fn identity(&self) -> &InputIdentity
Canonical identity over exact primary, closure, coverage, and rows.
Sourcepub const fn primary_input(&self) -> &InputIdentity
pub const fn primary_input(&self) -> &InputIdentity
Exact primary input identity.
Sourcepub const fn dependency_closure(&self) -> &DependencyClosureV1
pub const fn dependency_closure(&self) -> &DependencyClosureV1
Exact dependency-closure V1 record from the same loader invocation.
Sourcepub const fn default_scene(&self) -> RawGltfDefaultSceneObservationV1
pub const fn default_scene(&self) -> RawGltfDefaultSceneObservationV1
Optional top-level default-scene observation.
Sourcepub const fn scene_coverage(&self) -> RawGltfAddressabilityCoverageV1
pub const fn scene_coverage(&self) -> RawGltfAddressabilityCoverageV1
Source scene coverage.
Sourcepub fn scenes(&self) -> &[RawGltfSceneRowV1]
pub fn scenes(&self) -> &[RawGltfSceneRowV1]
Canonical source scene prefix.
Sourcepub const fn node_coverage(&self) -> RawGltfAddressabilityCoverageV1
pub const fn node_coverage(&self) -> RawGltfAddressabilityCoverageV1
Source node coverage.
Sourcepub fn nodes(&self) -> &[RawGltfNodeRowV1]
pub fn nodes(&self) -> &[RawGltfNodeRowV1]
Canonical source node prefix.
Sourcepub const fn skin_coverage(&self) -> RawGltfAddressabilityCoverageV1
pub const fn skin_coverage(&self) -> RawGltfAddressabilityCoverageV1
Source skin coverage.
Sourcepub fn skins(&self) -> &[RawGltfSkinRowV1]
pub fn skins(&self) -> &[RawGltfSkinRowV1]
Canonical source skin prefix.
Sourcepub const fn attachment_coverage(&self) -> RawGltfAddressabilityCoverageV1
pub const fn attachment_coverage(&self) -> RawGltfAddressabilityCoverageV1
Source node-to-skin attachment coverage.
Sourcepub fn attachments(&self) -> &[RawGltfSkinAttachmentRowV1]
pub fn attachments(&self) -> &[RawGltfSkinAttachmentRowV1]
Canonical source-node-order attachment prefix.
Sourcepub const fn path_candidate_coverage(&self) -> RawGltfAddressabilityCoverageV1
pub const fn path_candidate_coverage(&self) -> RawGltfAddressabilityCoverageV1
All-scene path-candidate coverage.
Sourcepub fn path_candidates(&self) -> &[RawGltfScenePathCandidateRowV1]
pub fn path_candidates(&self) -> &[RawGltfScenePathCandidateRowV1]
Canonical scene/root/child traversal prefix.
Sourcepub fn validate(&self) -> Result<(), RawGltfAddressabilityInventoryErrorV1>
pub fn validate(&self) -> Result<(), RawGltfAddressabilityInventoryErrorV1>
Validate this inventory without changing its identity.
Trait Implementations§
Source§impl Clone for RawGltfAddressabilityInventoryV1
impl Clone for RawGltfAddressabilityInventoryV1
Source§fn clone(&self) -> RawGltfAddressabilityInventoryV1
fn clone(&self) -> RawGltfAddressabilityInventoryV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more