Struct tblgen::record_keeper::RecordKeeper
source · pub struct RecordKeeper { /* private fields */ }Expand description
Struct that holds all records from a TableGen file.
Implementations§
source§impl RecordKeeper
impl RecordKeeper
sourcepub unsafe fn from_raw(raw: TableGenRecordKeeperRef) -> RecordKeeper
pub unsafe fn from_raw(raw: TableGenRecordKeeperRef) -> RecordKeeper
sourcepub fn classes(&self) -> NamedRecordIter<'_, IsClass> ⓘ
pub fn classes(&self) -> NamedRecordIter<'_, IsClass> ⓘ
Returns an iterator over all classes.
The iterator yields tuples of type (String, Record).
sourcepub fn defs(&self) -> NamedRecordIter<'_, IsDef> ⓘ
pub fn defs(&self) -> NamedRecordIter<'_, IsDef> ⓘ
Returns an iterator over all definitions.
The iterator yields tuples of type (String, Record).
sourcepub fn def(&self, name: &str) -> Option<Record<'_>>
pub fn def(&self, name: &str) -> Option<Record<'_>>
Returns the definition with the given name.
sourcepub fn all_derived_definitions(&self, name: &str) -> RecordIter<'_> ⓘ
pub fn all_derived_definitions(&self, name: &str) -> RecordIter<'_> ⓘ
Returns an iterator over all definitions that derive from the class with the given name.
Trait Implementations§
source§impl Debug for RecordKeeper
impl Debug for RecordKeeper
Auto Trait Implementations§
impl RefUnwindSafe for RecordKeeper
impl !Send for RecordKeeper
impl !Sync for RecordKeeper
impl Unpin for RecordKeeper
impl UnwindSafe for RecordKeeper
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