ControlCommand

Trait ControlCommand 

Source
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§

Source

fn cast_input(input: &AnyByLayout) -> Result<&Self::Input>

Source

fn cast_output(output: &mut AnyByLayout) -> Result<&mut Self::Output>

Source

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.

Implementors§