Skip to main content

HasModifiers

Trait HasModifiers 

Source
pub trait HasModifiers: AstNode {
    // Provided methods
    fn is_internal(&self) -> bool { ... }
    fn is_error(&self) -> bool { ... }
    fn is_open(&self) -> bool { ... }
}
Expand description

A node that accepts the internal / error prefix modifiers (general form §2; typl reference §3.3, §10.1).

Provided Methods§

Source

fn is_internal(&self) -> bool

true when the definition carries the internal modifier.

Source

fn is_error(&self) -> bool

true when the definition carries the error modifier.

Source

fn is_open(&self) -> bool

true when the definition carries the open modifier (valid on enum and enumset definitions only).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§