Enum move_lang::naming::ast::BuiltinFunction_
source · pub enum BuiltinFunction_ {
MoveTo(Option<Type>),
MoveFrom(Option<Type>),
BorrowGlobal(bool, Option<Type>),
Exists(Option<Type>),
Freeze(Option<Type>),
Assert,
}
Variants§
MoveTo(Option<Type>)
MoveFrom(Option<Type>)
BorrowGlobal(bool, Option<Type>)
Exists(Option<Type>)
Freeze(Option<Type>)
Assert
Implementations§
source§impl BuiltinFunction_
impl BuiltinFunction_
pub const MOVE_TO: &'static str = "move_to"
pub const MOVE_FROM: &'static str = "move_from"
pub const BORROW_GLOBAL: &'static str = "borrow_global"
pub const BORROW_GLOBAL_MUT: &'static str = "borrow_global_mut"
pub const EXISTS: &'static str = "exists"
pub const FREEZE: &'static str = "freeze"
pub const ASSERT: &'static str = "assert"
pub fn all_names() -> &'static BTreeSet<Symbol>
pub fn resolve(name_str: &str, arg: Option<Type>) -> Option<Self>
pub fn display_name(&self) -> &'static str
Trait Implementations§
source§impl Clone for BuiltinFunction_
impl Clone for BuiltinFunction_
source§fn clone(&self) -> BuiltinFunction_
fn clone(&self) -> BuiltinFunction_
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BuiltinFunction_
impl Debug for BuiltinFunction_
source§impl PartialEq<BuiltinFunction_> for BuiltinFunction_
impl PartialEq<BuiltinFunction_> for BuiltinFunction_
source§fn eq(&self, other: &BuiltinFunction_) -> bool
fn eq(&self, other: &BuiltinFunction_) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.