pub enum EmbeddedBackend {
Ast,
Vm,
}Expand description
Which backend a built binary runs its program on.
Fixed at build time like everything else the binary carries, and for the
same reason: a flag that chose it would be a flag, and a built binary
honours none. cove build --backend ast is where the choice is made.
Variants§
Ast
The tree-walking interpreter, which ADR 0034 keeps as the semantic oracle.
Vm
The linear-memory backend of ADR 0034, which is what a run runs on unless the build asked otherwise.
Trait Implementations§
Source§impl Clone for EmbeddedBackend
impl Clone for EmbeddedBackend
Source§fn clone(&self) -> EmbeddedBackend
fn clone(&self) -> EmbeddedBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EmbeddedBackend
Source§impl Debug for EmbeddedBackend
impl Debug for EmbeddedBackend
impl Eq for EmbeddedBackend
Source§impl PartialEq for EmbeddedBackend
impl PartialEq for EmbeddedBackend
Source§fn eq(&self, other: &EmbeddedBackend) -> bool
fn eq(&self, other: &EmbeddedBackend) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmbeddedBackend
Auto Trait Implementations§
impl Freeze for EmbeddedBackend
impl RefUnwindSafe for EmbeddedBackend
impl Send for EmbeddedBackend
impl Sync for EmbeddedBackend
impl Unpin for EmbeddedBackend
impl UnsafeUnpin for EmbeddedBackend
impl UnwindSafe for EmbeddedBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.