Struct spirq::annotation::NameRegistry
source · pub struct NameRegistry<'a> { /* private fields */ }
Implementations§
source§impl<'a> NameRegistry<'a>
impl<'a> NameRegistry<'a>
pub fn set(&mut self, id: u32, name: &'a str)
pub fn set_member(&mut self, id: u32, member_idx: u32, name: &'a str)
pub fn get(&self, id: u32) -> Option<&'a str>
pub fn get_member(&self, id: u32, member_idx: u32) -> Option<&'a str>
pub fn iter(&self) -> impl Iterator<Item = (&NameKey, &&'a str)>
Trait Implementations§
source§impl<'a> Default for NameRegistry<'a>
impl<'a> Default for NameRegistry<'a>
source§fn default() -> NameRegistry<'a>
fn default() -> NameRegistry<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for NameRegistry<'a>
impl<'a> RefUnwindSafe for NameRegistry<'a>
impl<'a> Send for NameRegistry<'a>
impl<'a> Sync for NameRegistry<'a>
impl<'a> Unpin for NameRegistry<'a>
impl<'a> UnwindSafe for NameRegistry<'a>
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