pub struct TransitionsState {
pub duration: f64,
pub kind: usize,
pub color: [u8; 4],
pub direction: u8,
}Fields§
§duration: f64Catalogue settings for the next transition to add — and the memory of the last one added.
kind: usize§color: [u8; 4]§direction: u8Implementations§
Source§impl TransitionsState
impl TransitionsState
Sourcepub fn kind(&self) -> TransitionKind
pub fn kind(&self) -> TransitionKind
The selected kind — also the one Ctrl+T repeats, because every apply path records here.
Sourcepub(crate) fn remember(&mut self, kind: TransitionKind, dur: f64)
pub(crate) fn remember(&mut self, kind: TransitionKind, dur: f64)
Remember what was just applied (from any path) so Ctrl+T is never stale.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransitionsState
impl RefUnwindSafe for TransitionsState
impl Send for TransitionsState
impl Sync for TransitionsState
impl Unpin for TransitionsState
impl UnwindSafe for TransitionsState
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more