Struct calyx::backend::resources::ResourcesBackend
source · pub struct ResourcesBackend;
Trait Implementations§
source§impl Backend for ResourcesBackend
impl Backend for ResourcesBackend
source§fn link_externs(_ctx: &Context, _file: &mut OutputFile) -> CalyxResult<()>
fn link_externs(_ctx: &Context, _file: &mut OutputFile) -> CalyxResult<()>
Don’t need to take care of this for this pass
source§fn emit(ctx: &Context, file: &mut OutputFile) -> CalyxResult<()>
fn emit(ctx: &Context, file: &mut OutputFile) -> CalyxResult<()>
Transforms the program into a formatted string representing a valid
and write it to
write
.source§fn run(&self, prog: Context, file: OutputFile) -> CalyxResult<()>
fn run(&self, prog: Context, file: OutputFile) -> CalyxResult<()>
Convience function to validate and emit the program.
source§impl Default for ResourcesBackend
impl Default for ResourcesBackend
source§fn default() -> ResourcesBackend
fn default() -> ResourcesBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ResourcesBackend
impl Send for ResourcesBackend
impl Sync for ResourcesBackend
impl Unpin for ResourcesBackend
impl UnwindSafe for ResourcesBackend
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