pub struct Program { /* private fields */ }Implementations§
Source§impl Program
impl Program
pub fn new() -> Program
pub fn with_stmts(stmts: Vec<Statement>) -> Program
pub fn push_mod(&mut self, m: Mod)
pub fn push_extern(&mut self, e: Extern)
pub fn push_static(&mut self, s: Static)
pub fn push_assignment(&mut self, a: Assignment)
pub fn push_defn(&mut self, d: Defn)
pub fn push_return(&mut self, r: Return)
Trait Implementations§
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnsafeUnpin for Program
impl UnwindSafe for Program
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