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 for WhitelistedAttributes
impl PartialEq for WhitelistedAttributes
impl Eq for WhitelistedAttributes
impl StructuralPartialEq for WhitelistedAttributes
Auto Trait Implementations§
impl Freeze for WhitelistedAttributes
impl RefUnwindSafe for WhitelistedAttributes
impl Send for WhitelistedAttributes
impl Sync for WhitelistedAttributes
impl Unpin for WhitelistedAttributes
impl UnwindSafe for WhitelistedAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more