ComponentConfig

Trait ComponentConfig 

Source
pub trait ComponentConfig: OperationSignatures {
    type Operation: OperationConfig;

    // Required methods
    fn operations(&self) -> &[Self::Operation];
    fn operations_mut(&mut self) -> &mut Vec<Self::Operation>;

    // Provided method
    fn get_operation(&self, name: &str) -> Option<&Self::Operation> { ... }
}

Required Associated Types§

Required Methods§

Source

fn operations(&self) -> &[Self::Operation]

Get the operations defined by this configuration.

Source

fn operations_mut(&mut self) -> &mut Vec<Self::Operation>

Get the operations defined by this configuration.

Provided Methods§

Source

fn get_operation(&self, name: &str) -> Option<&Self::Operation>

Get an operation definition by name.

Implementors§