pub enum Comp {
Rifmux(Box<RifmuxInst>),
Rif(Box<RifInst>),
External(Box<RifExt>),
}Expand description
Component: Rifmux, Rif or External Rif
Variants§
Implementations§
Source§impl Comp
impl Comp
pub fn is_rif(&self) -> bool
pub fn is_rifmux(&self) -> bool
pub fn is_external(&self) -> bool
pub fn set_suffixes(&mut self, suffixes: &HashMap<String, SuffixInfo>)
pub fn set_interface(&mut self, intf: &Interface)
Source§impl Comp
impl Comp
Sourcepub fn compile(
src: &RifGenSrc,
suffixes: &HashMap<String, SuffixInfo>,
params: &ParamValues,
) -> Result<Self, String>
pub fn compile( src: &RifGenSrc, suffixes: &HashMap<String, SuffixInfo>, params: &ParamValues, ) -> Result<Self, String>
Compile the RIF definition into instances
pub fn get_name(&self) -> &str
pub fn get_type(&self) -> &str
pub fn get_addr_width(&self) -> u8
pub fn get_data_width(&self) -> u8
pub fn get_desc_short(&self, is_public: bool) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Comp
impl RefUnwindSafe for Comp
impl Send for Comp
impl Sync for Comp
impl Unpin for Comp
impl UnsafeUnpin for Comp
impl UnwindSafe for Comp
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