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§
Sourcefn operations(&self) -> &[Self::Operation]
fn operations(&self) -> &[Self::Operation]
Get the operations defined by this configuration.
Sourcefn operations_mut(&mut self) -> &mut Vec<Self::Operation>
fn operations_mut(&mut self) -> &mut Vec<Self::Operation>
Get the operations defined by this configuration.
Provided Methods§
Sourcefn get_operation(&self, name: &str) -> Option<&Self::Operation>
fn get_operation(&self, name: &str) -> Option<&Self::Operation>
Get an operation definition by name.