pub struct ScratchState {
pub active: bool,
pub pointer_id: Option<i32>,
pub was_playing: bool,
pub started_at_seconds: f64,
pub target_position_frames: f64,
pub rendered_position_frames: f64,
pub target_rate: f32,
pub grip: f32,
pub base_rotation_degrees: f64,
}Fields§
§active: bool§pointer_id: Option<i32>§was_playing: bool§started_at_seconds: f64§target_position_frames: f64§rendered_position_frames: f64§target_rate: f32§grip: f32§base_rotation_degrees: f64Trait Implementations§
Source§impl Clone for ScratchState
impl Clone for ScratchState
Source§fn clone(&self) -> ScratchState
fn clone(&self) -> ScratchState
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 ScratchState
impl Debug for ScratchState
Source§impl Default for ScratchState
impl Default for ScratchState
Source§impl<'de> Deserialize<'de> for ScratchState
impl<'de> Deserialize<'de> for ScratchState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScratchState
impl PartialEq for ScratchState
Source§impl Serialize for ScratchState
impl Serialize for ScratchState
impl StructuralPartialEq for ScratchState
Auto Trait Implementations§
impl Freeze for ScratchState
impl RefUnwindSafe for ScratchState
impl Send for ScratchState
impl Sync for ScratchState
impl Unpin for ScratchState
impl UnsafeUnpin for ScratchState
impl UnwindSafe for ScratchState
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