Enum calyx_ir::PrimitiveInfo
source · pub enum PrimitiveInfo {
Extern {
path: PathBuf,
primitives: LinkedHashMap<Id, Primitive, RandomState>,
is_source: bool,
},
Inline {
primitive: Primitive,
is_source: bool,
},
}Expand description
Tracks the information for Primitives defined in the program.
Variants§
Implementations§
source§impl PrimitiveInfo
impl PrimitiveInfo
pub fn ext( path: PathBuf, primitives: LinkedHashMap<Id, Primitive, RandomState> ) -> PrimitiveInfo
pub fn inline(primitive: Primitive) -> PrimitiveInfo
sourcepub fn set_source(&mut self)
pub fn set_source(&mut self)
Mark this primitive as a source primitive
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PrimitiveInfo
impl Send for PrimitiveInfo
impl Sync for PrimitiveInfo
impl Unpin for PrimitiveInfo
impl UnwindSafe for PrimitiveInfo
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