Struct spirq_core::func::FunctionRegistry
source · pub struct FunctionRegistry { /* private fields */ }Implementations§
source§impl FunctionRegistry
impl FunctionRegistry
pub fn set(&mut self, id: u32, func: Function) -> Result<()>
pub fn get(&self, id: u32) -> Result<&Function>
pub fn get_mut(&mut self, id: u32) -> Result<&mut Function>
pub fn get_by_name(&self, name: &str) -> Result<&Function>
pub fn collect_ordered(&self) -> Vec<Function>
pub fn collect_fn_vars(&self, func: u32) -> Vec<u32>
Trait Implementations§
source§impl Default for FunctionRegistry
impl Default for FunctionRegistry
source§fn default() -> FunctionRegistry
fn default() -> FunctionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FunctionRegistry
impl Send for FunctionRegistry
impl Sync for FunctionRegistry
impl Unpin for FunctionRegistry
impl UnwindSafe for FunctionRegistry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more