Trait IsDirective

Source
pub trait IsDirective {
    // Required method
    fn as_ref(&self) -> Option<&Stmt>;

    // Provided methods
    fn directive_continue(&self) -> bool { ... }
    fn is_use_strict(&self) -> bool { ... }
}

Required Methods§

Source

fn as_ref(&self) -> Option<&Stmt>

Provided Methods§

Implementations on Foreign Types§

Source§

impl IsDirective for &ModuleItem

Source§

fn as_ref(&self) -> Option<&Stmt>

Source§

impl IsDirective for ModuleItem

Source§

fn as_ref(&self) -> Option<&Stmt>

Source§

impl IsDirective for Stmt

Source§

fn as_ref(&self) -> Option<&Stmt>

Implementors§