Enum erg_parser::ast::OperationKind
source · [−]pub enum OperationKind {
Import,
PyImport,
Del,
AssertCast,
}
Expand description
Some Erg functions require additional operation by the compiler.
Variants
Import
PyImport
Del
AssertCast
Implementations
sourceimpl 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
sourceimpl Clone for OperationKind
impl Clone for OperationKind
sourcefn clone(&self) -> OperationKind
fn clone(&self) -> OperationKind
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OperationKind
impl Debug for OperationKind
sourceimpl PartialEq<OperationKind> for OperationKind
impl PartialEq<OperationKind> for OperationKind
sourcefn eq(&self, other: &OperationKind) -> bool
fn eq(&self, other: &OperationKind) -> bool
impl Copy for OperationKind
impl Eq for OperationKind
impl StructuralEq for OperationKind
impl StructuralPartialEq for OperationKind
Auto Trait Implementations
impl RefUnwindSafe for OperationKind
impl Send for OperationKind
impl Sync for OperationKind
impl Unpin for OperationKind
impl UnwindSafe for OperationKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more