Enum erg_compiler::context::ControlKind
source · pub enum ControlKind {
If,
While,
For,
Match,
Try,
With,
Assert,
}
Variants§
Implementations§
source§impl ControlKind
impl ControlKind
pub const fn is_if(&self) -> bool
sourcepub const fn is_conditional(&self) -> bool
pub const fn is_conditional(&self) -> bool
if | if! | while!
pub const fn makes_scope(&self) -> bool
Trait Implementations§
source§impl Clone for ControlKind
impl Clone for ControlKind
source§fn clone(&self) -> ControlKind
fn clone(&self) -> ControlKind
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 ControlKind
impl Debug for ControlKind
source§impl Hash for ControlKind
impl Hash for ControlKind
source§impl PartialEq<ControlKind> for ControlKind
impl PartialEq<ControlKind> for ControlKind
source§fn eq(&self, other: &ControlKind) -> bool
fn eq(&self, other: &ControlKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.