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):
| Name | Static Name Identifier | Type |
|---|---|---|
| arg_attrs | ATTR_KEY_ARG_ATTRS | VecAttr |
| res_attrs | ATTR_KEY_RES_ATTRS | VecAttr |
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)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".