pub enum BuiltinKind {
Pure,
VmNative,
Effect,
}Expand description
How a builtin is executed.
Variants§
Pure
Effect-free; dispatched through the runtime’s pure table with owned arguments.
VmNative
Effect-free but lowered by the compiler / VM (the list higher-order functions); the runtime table has no entry.
Effect
Dispatched through the effect handler under the runtime policy.
Trait Implementations§
Source§impl Clone for BuiltinKind
impl Clone for BuiltinKind
Source§fn clone(&self) -> BuiltinKind
fn clone(&self) -> BuiltinKind
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 BuiltinKind
Source§impl Debug for BuiltinKind
impl Debug for BuiltinKind
impl Eq for BuiltinKind
Source§impl PartialEq for BuiltinKind
impl PartialEq for BuiltinKind
impl StructuralPartialEq for BuiltinKind
Auto Trait Implementations§
impl Freeze for BuiltinKind
impl RefUnwindSafe for BuiltinKind
impl Send for BuiltinKind
impl Sync for BuiltinKind
impl Unpin for BuiltinKind
impl UnsafeUnpin for BuiltinKind
impl UnwindSafe for BuiltinKind
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.