Struct ink_ir::utils::WhitelistedAttributes
source · pub struct WhitelistedAttributes(pub HashMap<String, ()>);
Expand description
The set of attributes that can be passed to call builder or call forwarder in the codegen.
Tuple Fields§
§0: HashMap<String, ()>
Implementations§
source§impl WhitelistedAttributes
impl WhitelistedAttributes
sourcepub fn parse_arg_value(&mut self, arg: &MetaNameValue) -> Result<(), Error>
pub fn parse_arg_value(&mut self, arg: &MetaNameValue) -> Result<(), Error>
Parses the MetaNameValue
argument of keep_attr
attribute. If the argument has
a correct format "foo, bar"
then foo
, bar
will be included in
the whitelist of attributes. Else error about parsing will be returned.
Trait Implementations§
source§impl Debug for WhitelistedAttributes
impl Debug for WhitelistedAttributes
source§impl Default for WhitelistedAttributes
impl Default for WhitelistedAttributes
source§impl PartialEq<WhitelistedAttributes> for WhitelistedAttributes
impl PartialEq<WhitelistedAttributes> for WhitelistedAttributes
source§fn eq(&self, other: &WhitelistedAttributes) -> bool
fn eq(&self, other: &WhitelistedAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.