pub struct Sweep { /* private fields */ }Expand description
A live parameter sweep over a built-in linear family y = param * x.
Implementations§
Source§impl Sweep
impl Sweep
Sourcepub fn plot(&self) -> Expr
pub fn plot(&self) -> Expr
The plot for the current parameter, with the slider control bound to
intent/set-param.
Sourcepub fn set_param(&mut self, intent: &Expr) -> Result<Expr>
pub fn set_param(&mut self, intent: &Expr) -> Result<Expr>
Apply an intent/set-param, updating the parameter and returning the new
plot. The plot updates live with the parameter.
Sourcepub fn snapshot(&mut self)
pub fn snapshot(&mut self)
Freeze the current series so it can be compared with later settings.
Sourcepub fn snapshot_count(&self) -> usize
pub fn snapshot_count(&self) -> usize
The number of frozen snapshots.
Auto Trait Implementations§
impl Freeze for Sweep
impl RefUnwindSafe for Sweep
impl Send for Sweep
impl Sync for Sweep
impl Unpin for Sweep
impl UnsafeUnpin for Sweep
impl UnwindSafe for Sweep
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