pub struct FeedbackLoop {
pub gain: f64,
pub direction: FeedbackDirection,
}Fields§
§gain: f64§direction: FeedbackDirectionImplementations§
Source§impl FeedbackLoop
impl FeedbackLoop
pub fn new( gain: f64, direction: FeedbackDirection, ) -> Result<FeedbackLoop, FeedbackError>
pub fn apply(&self, input: f64, feedback: f64) -> f64
Trait Implementations§
Source§impl Clone for FeedbackLoop
impl Clone for FeedbackLoop
Source§fn clone(&self) -> FeedbackLoop
fn clone(&self) -> FeedbackLoop
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeedbackLoop
impl Debug for FeedbackLoop
Source§impl PartialEq for FeedbackLoop
impl PartialEq for FeedbackLoop
Source§fn eq(&self, other: &FeedbackLoop) -> bool
fn eq(&self, other: &FeedbackLoop) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FeedbackLoop
impl StructuralPartialEq for FeedbackLoop
Auto Trait Implementations§
impl Freeze for FeedbackLoop
impl RefUnwindSafe for FeedbackLoop
impl Send for FeedbackLoop
impl Sync for FeedbackLoop
impl Unpin for FeedbackLoop
impl UnsafeUnpin for FeedbackLoop
impl UnwindSafe for FeedbackLoop
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