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§
Sourcefn set_bypass(&mut self, bypass: bool)
fn set_bypass(&mut self, bypass: bool)
Enable/disable bypass
Provided Methods§
Sourcefn process_with_bypass(&mut self, input: T) -> T
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".