Skip to main content

GltfScaleSource

Struct GltfScaleSource 

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

A captured, immutable source that passed its declared preflight policy.

This type deliberately has no mutation or write method. Scale operations consume its manifest and captured bytes without reopening the input.

Implementations§

Source§

impl GltfScaleSource

Source

pub fn document(&self) -> &Document

The normalized read-only document built from the captured bytes.

Source

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

Importer-sensitive raw source facts bound to the normalized document.

Source

pub fn manifest(&self) -> &GltfCapabilityManifest

The deterministic raw capability manifest.

Source

pub fn source_bytes(&self) -> &[u8]

The exact captured top-level input bytes.

Source

pub fn raw_json(&self) -> &Value

The original top-level JSON tree.

Source

pub fn resolved_buffers(&self) -> &[Vec<u8>]

Resolved source buffers in buffer-index order.

Source

pub const fn requires_clip_track_projection(&self) -> bool

Whether clip-track capture excluded one or more raw source violations.

A caller selecting between its established whole-source path and a clip-track projection uses this only as an in-memory policy result. It does not alter the exact source bytes, source identity, or manifest.

Trait Implementations§

Source§

impl Debug for GltfScaleSource

Source§

fn fmt(&self, f: &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 = 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.