pub struct Program {
pub structs: Vec<StructDecl>,
pub kind: ProgramKind,
}Expand description
Top-level program representation. Any leading type declarations are
collected into structs; kind is the statement or function body.
Fields§
§structs: Vec<StructDecl>§kind: ProgramKindTrait Implementations§
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