Skip to main content

ScopeExt

Trait ScopeExt 

Source
pub trait ScopeExt {
    // Required methods
    fn insert_token(&mut self, token: ScopeToken) -> bool;
    fn contains_token(&self, token: &ScopeToken) -> bool;
}
Expand description

Helpers for Scope to work with ScopeToken.

Required Methods§

Source

fn insert_token(&mut self, token: ScopeToken) -> bool

Insert the given ScopeToken into this Scope.

Source

fn contains_token(&self, token: &ScopeToken) -> bool

Whether this Scope contains the given ScopeToken.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§