pub trait ControlCommand: Clone + Copy {
type Input;
type Output;
const IDENTIFIER: ControlCommandIdentifier;
// Provided methods
fn cast_input(input: &AnyByLayout) -> Result<&Self::Input> { ... }
fn cast_output(output: &mut AnyByLayout) -> Result<&mut Self::Output> { ... }
fn cast<'i, 'o>(
input: &'i AnyByLayout,
output: &'o mut AnyByLayout,
) -> Result<(&'i Self::Input, &'o mut Self::Output)> { ... }
}Required Associated Constants§
Required Associated Types§
Provided Methods§
fn cast_input(input: &AnyByLayout) -> Result<&Self::Input>
fn cast_output(output: &mut AnyByLayout) -> Result<&mut Self::Output>
fn cast<'i, 'o>( input: &'i AnyByLayout, output: &'o mut AnyByLayout, ) -> Result<(&'i Self::Input, &'o mut Self::Output)>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.