Skip to main content

SymbolOpInterface

Trait SymbolOpInterface 

Source
pub trait SymbolOpInterface: Op + SymbolOpInterface {
    // Required methods
    fn get_visibility(&self, ctx: &Context) -> SymbolVisibility;
    fn set_visibility(&self, ctx: &mut Context, visibility: SymbolVisibility);

    // Provided methods
    fn verify(_op: &dyn Op, _ctx: &Context) -> Result<()>
       where Self: Sized { ... }
    fn is_public(&self, ctx: &Context) -> bool { ... }
    fn is_private(&self, ctx: &Context) -> bool { ... }
    fn is_nested(&self, ctx: &Context) -> bool { ... }
}

Required Methods§

Source

fn get_visibility(&self, ctx: &Context) -> SymbolVisibility

Source

fn set_visibility(&self, ctx: &mut Context, visibility: SymbolVisibility)

Provided Methods§

Source

fn verify(_op: &dyn Op, _ctx: &Context) -> Result<()>
where Self: Sized,

Source

fn is_public(&self, ctx: &Context) -> bool

Source

fn is_private(&self, ctx: &Context) -> bool

Source

fn is_nested(&self, ctx: &Context) -> bool

Trait Implementations§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl SymbolOpInterface for FuncOp

Source§

impl SymbolOpInterface for ModuleOp

Implementors§