oa::ml::ModuleRegistry

Constructor-owned structural registry for one Module. Registration requires &mut self, so a module’s parameter/buffer/child tree is fixed before the module is shared through Rc.

StRust public API

Declaration

pub struct ModuleRegistry { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn register_parameter( &mut self, name: impl Into<String>, parameter: Parameter, ) -> Result<()>
pub fn register_buffer( &mut self, name: impl Into<String>, data: Matrix, persistent: bool, ) -> Result<()>
pub fn register_state_u32( &mut self, name: impl Into<String>, value: u32, ) -> Result<NamedStateU32>
pub fn register_module( &mut self, name: impl Into<String>, module: Rc<dyn Module>, ) -> Result<()>

Associated Functions

pub const fn new() -> Self
fn default() -> Self

Public Method Documentation

pub fn register_parameter( &mut self, name: impl Into<String>, parameter: Parameter, ) -> Result<()>
No public source comment is attached to this declaration.
pub fn register_buffer( &mut self, name: impl Into<String>, data: Matrix, persistent: bool, ) -> Result<()>
No public source comment is attached to this declaration.
pub fn register_state_u32( &mut self, name: impl Into<String>, value: u32 ) -> Result<NamedStateU32>
No public source comment is attached to this declaration.
pub fn register_module( &mut self, name: impl Into<String>, module: Rc<dyn Module>, ) -> Result<()>
No public source comment is attached to this declaration.
pub const fn new() -> Self
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.