pub struct Program { /* private fields */ }Expand description
A compiled program (one or more modules).
Implementations§
Source§impl Program
impl Program
Sourcepub fn missing_ids(&self) -> Vec<MissingId>
pub fn missing_ids(&self) -> Vec<MissingId>
Lines that can have a stable ID but have none (in script order).
Source§impl Program
impl Program
Sourcepub fn schema_version(&self) -> u32
pub fn schema_version(&self) -> u32
The schema version of the scripts (the largest N of the migrate N blocks; 1 when there are none).
Sourcepub fn min_save_version(&self) -> u32
pub fn min_save_version(&self) -> u32
The oldest save schema version that can still be loaded (min_save_version; 1 when not written).
Sourcepub fn types(&self) -> &[TypeDecl]
pub fn types(&self) -> &[TypeDecl]
Declarations of structs and enums declared by users (in module order, then declaration order).
Sourcepub fn module(&self) -> &str
pub fn module(&self) -> &str
The name of the first module (for a program with one module, that module).
Sourcepub fn module_names(&self) -> impl Iterator<Item = &str>
pub fn module_names(&self) -> impl Iterator<Item = &str>
The list of module names (in the order passed to compilation).
Sourcepub fn label_names(&self) -> impl Iterator<Item = &str>
pub fn label_names(&self) -> impl Iterator<Item = &str>
The list of label names of the first module (in declaration order).
Trait Implementations§
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl Forget for Program
impl Freeze for Program
impl Move 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