Struct spirq::func::FunctionRegistry
source · pub struct FunctionRegistry { /* private fields */ }
Implementations§
source§impl FunctionRegistry
impl FunctionRegistry
pub fn set(&mut self, id: u32, func: Function) -> Result<(), Error>
pub fn get(&self, id: u32) -> Result<&Function, Error>
pub fn get_mut(&mut self, id: u32) -> Result<&mut Function, Error>
pub fn get_by_name(&self, name: &str) -> Result<&Function, Error>
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 Freeze for FunctionRegistry
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