Struct hexodsp::nodes::feedback_filter::FeedbackFilter
source · [−]pub struct FeedbackFilter {
led_filters: HashMap<NodeId, VisualSamplingFilter>,
out_filters: HashMap<(NodeId, u8), VisualSamplingFilter>,
recalc_state: bool,
}
Fields
led_filters: HashMap<NodeId, VisualSamplingFilter>
out_filters: HashMap<(NodeId, u8), VisualSamplingFilter>
recalc_state: bool
Implementations
sourceimpl FeedbackFilter
impl FeedbackFilter
pub fn new() -> Self
fn get_out_filter_for_node(
&mut self,
node_id: &NodeId,
out: u8
) -> &mut VisualSamplingFilter
fn get_led_filter_for_node(
&mut self,
node_id: &NodeId
) -> &mut VisualSamplingFilter
pub fn trigger_recalc(&mut self)
pub fn get_led(&mut self, node_id: &NodeId, sample: f32) -> (f32, f32)
pub fn get_out(&mut self, node_id: &NodeId, out: u8, sample: f32) -> (f32, f32)
Auto Trait Implementations
impl RefUnwindSafe for FeedbackFilter
impl Send for FeedbackFilter
impl Sync for FeedbackFilter
impl Unpin for FeedbackFilter
impl UnwindSafe for FeedbackFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more