Struct calyx::ir::LibrarySignatures
source · [−]pub struct LibrarySignatures { /* private fields */ }
Expand description
A representation of all the primitive definitions found while parsing the root program.
Implementations
sourceimpl LibrarySignatures
impl LibrarySignatures
sourcepub fn find_primitive<S>(&self, name: S) -> Option<&Primitive> where
S: AsRef<str>,
pub fn find_primitive<S>(&self, name: S) -> Option<&Primitive> where
S: AsRef<str>,
Return the Primitive associated with the given name if defined, otherwise return None.
sourcepub fn get_primitive<S>(&self, name: S) -> &Primitive where
S: AsRef<str>,
pub fn get_primitive<S>(&self, name: S) -> &Primitive where
S: AsRef<str>,
Return the Primitive associated to this Id.
sourcepub fn signatures(&self) -> impl Iterator<Item = &Primitive> + '_
pub fn signatures(&self) -> impl Iterator<Item = &Primitive> + '_
Return an iterator over all defined primitives.
sourcepub fn externs(self) -> Vec<(PathBuf, LinkedHashMap<Id, Primitive>)>
pub fn externs(self) -> Vec<(PathBuf, LinkedHashMap<Id, Primitive>)>
Return the underlying externs
sourcepub fn extern_paths(&self) -> Vec<&PathBuf>
pub fn extern_paths(&self) -> Vec<&PathBuf>
Return the paths for the extern defining files
Trait Implementations
sourceimpl Debug for LibrarySignatures
impl Debug for LibrarySignatures
sourceimpl Default for LibrarySignatures
impl Default for LibrarySignatures
sourcefn default() -> LibrarySignatures
fn default() -> LibrarySignatures
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LibrarySignatures
impl !Send for LibrarySignatures
impl !Sync for LibrarySignatures
impl Unpin for LibrarySignatures
impl UnwindSafe for LibrarySignatures
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more