Skip to main content

Scope

Trait Scope 

Source
pub trait Scope {
    // Required method
    fn end(&self);
}
Expand description

Delineates a logical scope that has some beginning and end (e.g. a function or block of code).

Required Methods§

Source

fn end(&self)

invoke when the scope has ended.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§