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
Extern
An extern block that defines multiple primitives
Inline
An inline primitive
Implementations
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more