Struct plasma::PhaseAmpCfg
source · pub struct PhaseAmpCfg { /* private fields */ }
Expand description
Holds parameters of phase and amplitude changes for PhaseAmpConfig trait.
Implementations§
source§impl PhaseAmpCfg
impl PhaseAmpCfg
sourcepub fn new(min_steps: f32, max_steps: f32) -> Self
pub fn new(min_steps: f32, max_steps: f32) -> Self
Creates new PhaseAmpCfg instance from the provided arguments.
The arguments define the range [min, max)
for a number of animation steps
between phase and amplitude transitions.
The larger the numbers the slower plasma animates.
§Panics
Panics if min_steps
is equal or larger than max_steps
or
if min_steps
is less than or equal to 1.0
.
Trait Implementations§
source§impl Clone for PhaseAmpCfg
impl Clone for PhaseAmpCfg
source§fn clone(&self) -> PhaseAmpCfg
fn clone(&self) -> PhaseAmpCfg
Returns a copy 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 PhaseAmpCfg
impl Debug for PhaseAmpCfg
source§impl Default for PhaseAmpCfg
impl Default for PhaseAmpCfg
source§impl PartialEq for PhaseAmpCfg
impl PartialEq for PhaseAmpCfg
source§impl PhaseAmpConfig for PhaseAmpCfg
impl PhaseAmpConfig for PhaseAmpCfg
impl Copy for PhaseAmpCfg
impl StructuralPartialEq for PhaseAmpCfg
Auto Trait Implementations§
impl Freeze for PhaseAmpCfg
impl RefUnwindSafe for PhaseAmpCfg
impl Send for PhaseAmpCfg
impl Sync for PhaseAmpCfg
impl Unpin for PhaseAmpCfg
impl UnwindSafe for PhaseAmpCfg
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)