pub struct Algorithm { /* private fields */ }Expand description
Routing between the operators and amplifier
Implementations§
Source§impl Algorithm
impl Algorithm
pub const fn new(operators: [Vec<Output>; 6]) -> Self
Sourcepub fn is_carrier(&self, operator_id: OperatorId) -> bool
pub fn is_carrier(&self, operator_id: OperatorId) -> bool
Returns true if the operator exists and is a carrier
Sourcepub fn is_feedback(&self, operator_id: OperatorId) -> bool
pub fn is_feedback(&self, operator_id: OperatorId) -> bool
Returns true if the operator exists and feeds back into itself.
pub fn routing(&self, operator_id: OperatorId) -> Option<&Vec<Output>>
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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