pub struct AnimFrame {
pub start: u32,
pub end: u32,
pub speed: f32,
}Expand description
A single animation frame range.
Defines which frames of the 3D model’s animation sequence to use and how fast to play them.
§.inf format
ani_xxx=start_frame,end_frame,speedFields§
§start: u32First frame of the animation.
end: u32Last frame of the animation.
speed: f32Playback speed multiplier.
Implementations§
Trait Implementations§
impl Copy for AnimFrame
Source§impl<'de> Deserialize<'de> for AnimFrame
impl<'de> Deserialize<'de> for AnimFrame
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnimFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnimFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AnimFrame
impl Serialize for AnimFrame
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AnimFrame
Auto Trait Implementations§
impl Forget for AnimFrame
impl Freeze for AnimFrame
impl Move for AnimFrame
impl RefUnwindSafe for AnimFrame
impl Send for AnimFrame
impl Sync for AnimFrame
impl Unpin for AnimFrame
impl UnsafeUnpin for AnimFrame
impl UnwindSafe for AnimFrame
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