Struct tblgen::record_keeper::RecordKeeper
source · pub struct RecordKeeper<'s> { /* private fields */ }
Expand description
Struct that holds all records from a TableGen file.
Implementations§
source§impl<'s> RecordKeeper<'s>
impl<'s> RecordKeeper<'s>
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 class(&self, name: &str) -> Result<Record<'_>, Error>
pub fn class(&self, name: &str) -> Result<Record<'_>, Error>
Returns the class with the given name.
sourcepub fn def(&self, name: &str) -> Result<Record<'_>, Error>
pub fn def(&self, name: &str) -> Result<Record<'_>, Error>
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.
pub fn source_info(&self) -> SourceInfo<'_>
Trait Implementations§
source§impl<'s> Debug for RecordKeeper<'s>
impl<'s> Debug for RecordKeeper<'s>
source§impl<'s> Drop for RecordKeeper<'s>
impl<'s> Drop for RecordKeeper<'s>
source§impl<'s> PartialEq<RecordKeeper<'s>> for RecordKeeper<'s>
impl<'s> PartialEq<RecordKeeper<'s>> for RecordKeeper<'s>
source§fn eq(&self, other: &RecordKeeper<'s>) -> bool
fn eq(&self, other: &RecordKeeper<'s>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'s> Eq for RecordKeeper<'s>
impl<'s> StructuralEq for RecordKeeper<'s>
impl<'s> StructuralPartialEq for RecordKeeper<'s>
Auto Trait Implementations§
impl<'s> RefUnwindSafe for RecordKeeper<'s>
impl<'s> !Send for RecordKeeper<'s>
impl<'s> !Sync for RecordKeeper<'s>
impl<'s> Unpin for RecordKeeper<'s>
impl<'s> UnwindSafe for RecordKeeper<'s>
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