pub struct Engine<'world> { /* private fields */ }Implementations§
Source§impl<'world> Engine<'world>
impl<'world> Engine<'world>
pub fn emit(&mut self, diagnostic: Diagnostic)
pub fn diagnostics(&self) -> EcoVec<Diagnostic>
Sourcepub fn input_files(&self) -> EcoVec<Source>
pub fn input_files(&self) -> EcoVec<Source>
Forwards to World::input_files
Sourcepub fn imported_file(
&self,
relative_to: &Source,
path: &Path,
) -> Result<Source, FileError>
pub fn imported_file( &self, relative_to: &Source, path: &Path, ) -> Result<Source, FileError>
Forwards to World::imported_file
Trait Implementations§
Source§impl<'world> Track for Engine<'world>
impl<'world> Track for Engine<'world>
Source§fn track_mut(&mut self) -> TrackedMut<'_, Self>
fn track_mut(&mut self) -> TrackedMut<'_, Self>
Start tracking all accesses and mutations to a value.
Source§fn track_with<'a>(
&'a self,
constraint: &'a Self::Constraint,
) -> Tracked<'a, Self>
fn track_with<'a>( &'a self, constraint: &'a Self::Constraint, ) -> Tracked<'a, Self>
Start tracking all accesses into a constraint.
Source§fn track_mut_with<'a>(
&'a mut self,
constraint: &'a Self::Constraint,
) -> TrackedMut<'a, Self>
fn track_mut_with<'a>( &'a mut self, constraint: &'a Self::Constraint, ) -> TrackedMut<'a, Self>
Start tracking all accesses and mutations into a constraint.
Source§impl<'world> Validate for Engine<'world>
impl<'world> Validate for Engine<'world>
Source§type Constraint = Constraint<__ComemoCall>
type Constraint = Constraint<__ComemoCall>
The constraints for this type.
Source§fn validate(&self, constraint: &Self::Constraint) -> bool
fn validate(&self, constraint: &Self::Constraint) -> bool
Whether this value fulfills the given constraints. Read more
Source§fn validate_with_id(&self, constraint: &Self::Constraint, id: usize) -> bool
fn validate_with_id(&self, constraint: &Self::Constraint, id: usize) -> bool
Source§fn replay(&mut self, constraint: &Self::Constraint)
fn replay(&mut self, constraint: &Self::Constraint)
Replay recorded mutations to the value.
Auto Trait Implementations§
impl<'world> Freeze for Engine<'world>
impl<'world> !RefUnwindSafe for Engine<'world>
impl<'world> !Send for Engine<'world>
impl<'world> !Sync for Engine<'world>
impl<'world> Unpin for Engine<'world>
impl<'world> !UnwindSafe for Engine<'world>
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