Skip to main content

IsDeclaration

Trait IsDeclaration 

Source
pub trait IsDeclaration: Op {
    // Required method
    fn is_declaration(&self, ctx: &Context) -> bool
       where Self: Sized;
}
Expand description

Is a global value (variable or function) declaration.

Required Methods§

Source

fn is_declaration(&self, ctx: &Context) -> bool
where Self: Sized,

Check if this global value (variable or function) is a declaration.

Trait Implementations§

Source§

impl OpInterfaceMarker for dyn IsDeclaration

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§