pub struct BevyAnimationAssetLabelV1 { /* private fields */ }Expand description
One exact Bevy 0.19.0 GltfAssetLabel::Animation(index) display selector.
The source animation index is authoritative. Source names are optional,
non-unique metadata and never affect this value. Construction enforces the
same 4,096-row ceiling as raw-source facts, so the retained selector text is
bounded to Animation0 through Animation4095.
Implementations§
Source§impl BevyAnimationAssetLabelV1
impl BevyAnimationAssetLabelV1
Sourcepub fn new(
source_clip_index: usize,
) -> Result<Self, BevyAnimationAssetLabelError>
pub fn new( source_clip_index: usize, ) -> Result<Self, BevyAnimationAssetLabelError>
Construct the indexed selector for one retained source animation.
§Errors
Returns BevyAnimationAssetLabelError when the index cannot occur in
the bounded V1 raw-source animation inventory.
Sourcepub const fn source_clip_index(&self) -> usize
pub const fn source_clip_index(&self) -> usize
Exact source animation index carried by this selector.
Trait Implementations§
Source§impl Clone for BevyAnimationAssetLabelV1
impl Clone for BevyAnimationAssetLabelV1
Source§fn clone(&self) -> BevyAnimationAssetLabelV1
fn clone(&self) -> BevyAnimationAssetLabelV1
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 moreSource§impl Debug for BevyAnimationAssetLabelV1
impl Debug for BevyAnimationAssetLabelV1
impl Eq for BevyAnimationAssetLabelV1
impl StructuralPartialEq for BevyAnimationAssetLabelV1
Auto Trait Implementations§
impl Freeze for BevyAnimationAssetLabelV1
impl RefUnwindSafe for BevyAnimationAssetLabelV1
impl Send for BevyAnimationAssetLabelV1
impl Sync for BevyAnimationAssetLabelV1
impl Unpin for BevyAnimationAssetLabelV1
impl UnsafeUnpin for BevyAnimationAssetLabelV1
impl UnwindSafe for BevyAnimationAssetLabelV1
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