Enum erg_parser::ast::OperationKind
source · pub enum OperationKind {
Import,
PyImport,
Del,
AssertCast,
Class,
Inherit,
Trait,
Subsume,
Return,
Yield,
}
Expand description
Some Erg functions require additional operation by the compiler.
Variants§
Implementations§
source§impl OperationKind
impl OperationKind
pub const fn is_erg_import(&self) -> bool
pub const fn is_py_import(&self) -> bool
pub const fn is_import(&self) -> bool
Trait Implementations§
source§impl Clone for OperationKind
impl Clone for OperationKind
source§fn clone(&self) -> OperationKind
fn clone(&self) -> OperationKind
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 OperationKind
impl Debug for OperationKind
source§impl PartialEq<OperationKind> for OperationKind
impl PartialEq<OperationKind> for OperationKind
source§fn eq(&self, other: &OperationKind) -> bool
fn eq(&self, other: &OperationKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.