Enum erg_parser::ast::OperationKind
source · pub enum OperationKind {
Import,
PyImport,
RsImport,
Del,
Assert,
Class,
Inherit,
Trait,
Subsume,
Return,
Yield,
Cast,
}
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 for OperationKind
impl PartialEq 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 ==
.impl Copy for OperationKind
impl Eq for OperationKind
impl StructuralPartialEq for OperationKind
Auto Trait Implementations§
impl Freeze for OperationKind
impl RefUnwindSafe for OperationKind
impl Send for OperationKind
impl Sync for OperationKind
impl Unpin for OperationKind
impl UnwindSafe for OperationKind
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