pub struct App { /* private fields */ }
Expand description
An in-memory representation that can be used to generate application code that matches
the constraints and instructions from a Blueprint
instance.
Implementations§
source§impl App
impl App
sourcepub fn build(
bp: Blueprint,
project_fingerprint: String
) -> Result<(Self, Vec<Error>), Vec<Error>>
pub fn build( bp: Blueprint, project_fingerprint: String ) -> Result<(Self, Vec<Error>), Vec<Error>>
Process the Blueprint
created by user into an App
instance—an in-memory
representation that can be used to generate application code that matches the constraints
and instructions in the blueprint.
Many different things can go wrong during this process: this method tries its best to report all errors to the user, but it may not be able to do so in all cases.
sourcepub fn codegen(&self) -> Result<GeneratedApp, Error>
pub fn codegen(&self) -> Result<GeneratedApp, Error>
Generate the manifest and the Rust code for the analysed application.
They are generated in-memory, they are not persisted to disk.
sourcepub fn diagnostic_representation(&self) -> AppDiagnostics
pub fn diagnostic_representation(&self) -> AppDiagnostics
A representation of an App
geared towards debugging and testing.
Auto Trait Implementations§
impl !Freeze for App
impl RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl Unpin for App
impl UnwindSafe for App
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