pub struct StructuralMetadataExtension;Expand description
Property tables, whose columns are buffer views rather than accessors.
Trait Implementations§
Source§impl Clone for StructuralMetadataExtension
impl Clone for StructuralMetadataExtension
Source§fn clone(&self) -> StructuralMetadataExtension
fn clone(&self) -> StructuralMetadataExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StructuralMetadataExtension
Source§impl Debug for StructuralMetadataExtension
impl Debug for StructuralMetadataExtension
Source§impl Default for StructuralMetadataExtension
impl Default for StructuralMetadataExtension
Source§fn default() -> StructuralMetadataExtension
fn default() -> StructuralMetadataExtension
Returns the “default value” for a type. Read more
Source§impl ExtensionHandler for StructuralMetadataExtension
impl ExtensionHandler for StructuralMetadataExtension
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Returns the exact glTF extension name handled by this implementation.
Source§fn allows_binary_transform(&self) -> bool
fn allows_binary_transform(&self) -> bool
Whether a transform may replace accessor and buffer-view binary data
while preserving this extension. Handlers must opt in explicitly after
validating their binary-reference semantics.
Source§fn collect_binary_references(
&self,
document: &Document,
_accessors: &mut [bool],
buffer_views: &mut [bool],
) -> Result<()>
fn collect_binary_references( &self, document: &Document, _accessors: &mut [bool], buffer_views: &mut [bool], ) -> Result<()>
Marks every accessor and buffer-view reference owned by this extension. Read more
Source§fn remap_binary_references(
&self,
document: &mut Document,
_accessors: &[Option<usize>],
buffer_views: &[Option<usize>],
) -> Result<()>
fn remap_binary_references( &self, document: &mut Document, _accessors: &[Option<usize>], buffer_views: &[Option<usize>], ) -> Result<()>
Applies the maps produced by binary compaction to references owned by
this extension. This is called only for handlers that explicitly allow
binary transforms.
Source§fn validate(
&self,
_document: &Document,
_context: &mut ExtensionValidationContext,
) -> Result<()>
fn validate( &self, _document: &Document, _context: &mut ExtensionValidationContext, ) -> Result<()>
Performs extension-specific strict validation and records narrowly
scoped core-validation exemptions in
context.Source§fn decode_primitive(
&self,
_document: &Document,
_resources: &ResourceStore,
_primitive: PrimitiveRef<'_>,
) -> Option<Result<Mesh>>
fn decode_primitive( &self, _document: &Document, _resources: &ResourceStore, _primitive: PrimitiveRef<'_>, ) -> Option<Result<Mesh>>
Decodes geometry for
primitive, or returns None when this handler
does not own that primitive.Auto Trait Implementations§
impl Freeze for StructuralMetadataExtension
impl RefUnwindSafe for StructuralMetadataExtension
impl Send for StructuralMetadataExtension
impl Sync for StructuralMetadataExtension
impl Unpin for StructuralMetadataExtension
impl UnsafeUnpin for StructuralMetadataExtension
impl UnwindSafe for StructuralMetadataExtension
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more