pub struct SwitchTransition {
pub phase: Phase,
pub playing: bool,
/* private fields */
}
Fields§
§phase: Phase
§playing: bool
Implementations§
Source§impl SwitchTransition
impl SwitchTransition
pub fn new(value: bool, phase: Phase) -> Self
pub fn instant(value: bool) -> Self
pub fn time(&self) -> Scalar
pub fn start(&mut self)
pub fn end(&mut self)
pub fn set_time(&mut self, time: Scalar)
pub fn in_progress(&self) -> bool
pub fn is_complete(&self) -> bool
pub fn value(&self) -> bool
pub fn duration(&self) -> Scalar
pub fn phase(&self) -> Scalar
pub fn sample(&self, time: Scalar) -> Scalar
pub fn set(&mut self, value: bool)
pub fn process(&mut self, delta_time: Scalar)
Trait Implementations§
Source§impl Clone for SwitchTransition
impl Clone for SwitchTransition
Source§fn clone(&self) -> SwitchTransition
fn clone(&self) -> SwitchTransition
Returns a duplicate of the value. Read more
1.0.0 · 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 SwitchTransition
impl Debug for SwitchTransition
Source§impl Default for SwitchTransition
impl Default for SwitchTransition
Source§fn default() -> SwitchTransition
fn default() -> SwitchTransition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SwitchTransition
impl<'de> Deserialize<'de> for SwitchTransition
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
Auto Trait Implementations§
impl Freeze for SwitchTransition
impl RefUnwindSafe for SwitchTransition
impl Send for SwitchTransition
impl Sync for SwitchTransition
impl Unpin for SwitchTransition
impl UnwindSafe for SwitchTransition
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