pub struct XoPreview { /* private fields */ }Expand description
Immutable per-design responses; building once keeps slider calls below R7’s 0.2 s budget. Rebuild this cache whenever the design changes.
Implementations§
Source§impl XoPreview
impl XoPreview
Sourcepub fn new(design: &Design) -> Self
pub fn new(design: &Design) -> Self
Precomputes BA/bus and corrected main responses at the reference seat.
Sourcepub fn curves(
&self,
design: &Design,
group: &str,
fc: f64,
corrected: bool,
role: Option<&str>,
) -> XoCurves
pub fn curves( &self, design: &Design, group: &str, fc: f64, corrected: bool, role: Option<&str>, ) -> XoCurves
Applies only a new electrical HP/LP, then power averaging and smoothing.
design must be the design passed to new. An absent/unknown role uses
the whole group; an unknown group has zero mains and the raw sub curve.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XoPreview
impl RefUnwindSafe for XoPreview
impl Send for XoPreview
impl Sync for XoPreview
impl Unpin for XoPreview
impl UnsafeUnpin for XoPreview
impl UnwindSafe for XoPreview
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<T, U> Imply<T> for U
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