pub enum ObjectState {
Random,
Fixed(f32, f32, f32),
}Expand description
How the object’s state (animation/growth offset) is determined.
Variants§
Random
Random offset (default). Corresponds to state=random.
Fixed(f32, f32, f32)
Fixed offsets provided as three floats.
Trait Implementations§
Source§impl Clone for ObjectState
impl Clone for ObjectState
impl Copy for ObjectState
Source§impl Debug for ObjectState
impl Debug for ObjectState
Source§impl Default for ObjectState
impl Default for ObjectState
Source§impl<'de> Deserialize<'de> for ObjectState
impl<'de> Deserialize<'de> for ObjectState
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 ObjectState
impl PartialEq for ObjectState
Source§impl Serialize for ObjectState
impl Serialize for ObjectState
impl StructuralPartialEq for ObjectState
Auto Trait Implementations§
impl Forget for ObjectState
impl Freeze for ObjectState
impl Move for ObjectState
impl RefUnwindSafe for ObjectState
impl Send for ObjectState
impl Sync for ObjectState
impl Unpin for ObjectState
impl UnsafeUnpin for ObjectState
impl UnwindSafe for ObjectState
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