pub struct ProgramResult<'a> { /* private fields */ }Expand description
Successful evaluation returns all emission requests together. No callback runs during evaluation. Rendering spends the same request budget and callers should commit the returned bytes only after rendering succeeds.
Implementations§
Source§impl<'a> ProgramResult<'a>
impl<'a> ProgramResult<'a>
Sourcepub fn candidate(&self) -> Option<&Input>
pub fn candidate(&self) -> Option<&Input>
The complete reparsed document, present only for an editing program.
pub fn emissions(&self) -> &[ProgramEmission<'a>]
pub fn semantic(&self) -> Option<&SemanticResult<'a>>
Sourcepub fn model_facts(&self) -> Option<&ModelFacts<'a>>
pub fn model_facts(&self) -> Option<&ModelFacts<'a>>
Retained owner for native nominal IDs, including pure .dzn reports.
pub fn limitations(&self) -> &[SourceDiagnostic]
pub fn is_complete(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for ProgramResult<'a>
impl<'a> !RefUnwindSafe for ProgramResult<'a>
impl<'a> !Send for ProgramResult<'a>
impl<'a> !Sync for ProgramResult<'a>
impl<'a> !UnwindSafe for ProgramResult<'a>
impl<'a> Unpin for ProgramResult<'a>
impl<'a> UnsafeUnpin for ProgramResult<'a>
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