Skip to main content

Engine

Struct Engine 

Source
pub struct Engine<VFS, Terminal> { /* private fields */ }

Implementations§

Source§

impl<VFS, Terminal> Engine<VFS, Terminal>
where VFS: VirtualFileSystem, Terminal: TerminalProvider,

Source

pub fn new(vfs: VFS, terminal: Terminal) -> Self

Source

pub fn with_terminal_timeout(self, timeout: Duration) -> Self

Source

pub fn with_list_budget(self, max_lines: usize, dense_threshold: usize) -> Self

Source

pub fn capability_manifest(&self) -> CapabilityManifest

Source

pub fn capability_manifest_for( &self, capabilities: &[Capability], ) -> CapabilityManifest

Source

pub fn execute_turn( &mut self, instructions: Vec<Instruction>, ) -> Result<TurnResult>

Trait Implementations§

Source§

impl<VFS: Debug, Terminal: Debug> Debug for Engine<VFS, Terminal>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<VFS, Terminal> Freeze for Engine<VFS, Terminal>
where VFS: Freeze, Terminal: Freeze,

§

impl<VFS, Terminal> RefUnwindSafe for Engine<VFS, Terminal>
where VFS: RefUnwindSafe, Terminal: RefUnwindSafe,

§

impl<VFS, Terminal> Send for Engine<VFS, Terminal>
where VFS: Send, Terminal: Send,

§

impl<VFS, Terminal> Sync for Engine<VFS, Terminal>
where VFS: Sync, Terminal: Sync,

§

impl<VFS, Terminal> Unpin for Engine<VFS, Terminal>
where VFS: Unpin, Terminal: Unpin,

§

impl<VFS, Terminal> UnsafeUnpin for Engine<VFS, Terminal>
where VFS: UnsafeUnpin, Terminal: UnsafeUnpin,

§

impl<VFS, Terminal> UnwindSafe for Engine<VFS, Terminal>
where VFS: UnwindSafe, Terminal: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.