Skip to main content

Bypassable

Trait Bypassable 

Source
pub trait Bypassable<T: Transcendental>: Effect<T> {
    // Required methods
    fn set_bypass(&mut self, bypass: bool);
    fn bypass(&self) -> bool;

    // Provided method
    fn process_with_bypass(&mut self, input: T) -> T { ... }
}
Expand description

Effect with bypass support

Required Methods§

Source

fn set_bypass(&mut self, bypass: bool)

Enable/disable bypass

Source

fn bypass(&self) -> bool

Current bypass state

Provided Methods§

Source

fn process_with_bypass(&mut self, input: T) -> T

Process with bypass consideration

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§