Skip to main content

FuncInterface

Trait FuncInterface 

Source
pub trait FuncInterface: Op {
Show 16 methods // Provided methods fn get_arg_attrs<'a>( &self, ctx: &'a Context, arg_idx: usize, ) -> Option<Ref<'a, DictAttr>> { ... } fn get_arg_attr<'a, T: Attribute>( &self, ctx: &'a Context, arg_idx: usize, key: &Identifier, ) -> Option<Ref<'a, T>> { ... } fn has_arg_attr( &self, ctx: &Context, arg_idx: usize, key: &Identifier, ) -> bool { ... } fn get_arg_attrs_mut<'a>( &self, ctx: &'a Context, arg_idx: usize, ) -> RefMut<'a, DictAttr> { ... } fn get_res_attrs<'a>( &self, ctx: &'a Context, res_idx: usize, ) -> Option<Ref<'a, DictAttr>> { ... } fn get_res_attr<'a, T: Attribute>( &self, ctx: &'a Context, res_idx: usize, key: &Identifier, ) -> Option<Ref<'a, T>> { ... } fn has_res_attr( &self, ctx: &Context, res_idx: usize, key: &Identifier, ) -> bool { ... } fn get_res_attrs_mut<'a>( &self, ctx: &'a Context, res_idx: usize, ) -> RefMut<'a, DictAttr> { ... } fn set_arg_attrs(&self, ctx: &Context, arg_idx: usize, dict: DictAttr) { ... } fn set_arg_attr( &self, ctx: &Context, arg_idx: usize, key: &Identifier, value: AttrObj, ) { ... } fn set_arg_attr_unit(&self, ctx: &Context, arg_idx: usize, key: &Identifier) { ... } fn remove_arg_attr(&self, ctx: &Context, arg_idx: usize, key: &Identifier) { ... } fn set_res_attrs(&self, ctx: &Context, res_idx: usize, dict: DictAttr) { ... } fn set_res_attr( &self, ctx: &Context, res_idx: usize, key: &Identifier, value: AttrObj, ) { ... } fn remove_res_attr(&self, ctx: &Context, res_idx: usize, key: &Identifier) { ... } fn set_res_attr_unit(&self, ctx: &Context, res_idx: usize, key: &Identifier) { ... }
}
Expand description

Op that may define an entry point.

§Attribute(s):

NameStatic Name IdentifierType
arg_attrsATTR_KEY_ARG_ATTRSVecAttr
res_attrsATTR_KEY_RES_ATTRSVecAttr

Provided Methods§

Source

fn get_arg_attrs<'a>( &self, ctx: &'a Context, arg_idx: usize, ) -> Option<Ref<'a, DictAttr>>

Source

fn get_arg_attr<'a, T: Attribute>( &self, ctx: &'a Context, arg_idx: usize, key: &Identifier, ) -> Option<Ref<'a, T>>

Source

fn has_arg_attr(&self, ctx: &Context, arg_idx: usize, key: &Identifier) -> bool

Source

fn get_arg_attrs_mut<'a>( &self, ctx: &'a Context, arg_idx: usize, ) -> RefMut<'a, DictAttr>

Source

fn get_res_attrs<'a>( &self, ctx: &'a Context, res_idx: usize, ) -> Option<Ref<'a, DictAttr>>

Source

fn get_res_attr<'a, T: Attribute>( &self, ctx: &'a Context, res_idx: usize, key: &Identifier, ) -> Option<Ref<'a, T>>

Source

fn has_res_attr(&self, ctx: &Context, res_idx: usize, key: &Identifier) -> bool

Source

fn get_res_attrs_mut<'a>( &self, ctx: &'a Context, res_idx: usize, ) -> RefMut<'a, DictAttr>

Source

fn set_arg_attrs(&self, ctx: &Context, arg_idx: usize, dict: DictAttr)

Source

fn set_arg_attr( &self, ctx: &Context, arg_idx: usize, key: &Identifier, value: AttrObj, )

Source

fn set_arg_attr_unit(&self, ctx: &Context, arg_idx: usize, key: &Identifier)

Source

fn remove_arg_attr(&self, ctx: &Context, arg_idx: usize, key: &Identifier)

Source

fn set_res_attrs(&self, ctx: &Context, res_idx: usize, dict: DictAttr)

Source

fn set_res_attr( &self, ctx: &Context, res_idx: usize, key: &Identifier, value: AttrObj, )

Source

fn remove_res_attr(&self, ctx: &Context, res_idx: usize, key: &Identifier)

Source

fn set_res_attr_unit(&self, ctx: &Context, res_idx: usize, key: &Identifier)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FuncInterface for FuncOp

Implementors§