Skip to main content

EntrypointInterface

Trait EntrypointInterface 

Source
pub trait EntrypointInterface: Op {
    // Provided methods
    fn verify(_op: &dyn Op, _ctx: &Context) -> Result<()>
       where Self: Sized { ... }
    fn get_entrypoint_abi(&self, ctx: &Context) -> Option<EntrypointAbiAttr> { ... }
    fn set_entrypoint_abi(
        &self,
        ctx: &mut Context,
        entry_point_abi: EntrypointAbiAttr,
    ) { ... }
}
Expand description

Op that may define an entry point.

§Attribute(s):

NameStatic Name IdentifierType
entry_pointATTR_KEY_ENTRY_POINTEntrypointAbiAttr

Provided Methods§

Source

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

Source

fn get_entrypoint_abi(&self, ctx: &Context) -> Option<EntrypointAbiAttr>

Get the entry point ABI defined by this operation.

Source

fn set_entrypoint_abi( &self, ctx: &mut Context, entry_point_abi: EntrypointAbiAttr, )

Set the entry point ABI defined by this operation.

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 EntrypointInterface for FuncOp

Implementors§