pub(crate) trait AttributeListExt {
// Required methods
fn consume_no_mangle(&mut self) -> Option<Loc<()>>;
fn report_unused(&self, on: &str) -> Result<()>;
fn lower(
&self,
handler: &mut impl FnMut(&Loc<Attribute>) -> Result<Option<Attribute>>,
) -> Result<AttributeList>;
fn merge_docs(&self) -> String;
}
Required Methods§
fn consume_no_mangle(&mut self) -> Option<Loc<()>>
fn report_unused(&self, on: &str) -> Result<()>
fn lower( &self, handler: &mut impl FnMut(&Loc<Attribute>) -> Result<Option<Attribute>>, ) -> Result<AttributeList>
fn merge_docs(&self) -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl AttributeListExt for AttributeList
impl AttributeListExt for AttributeList
Source§fn consume_no_mangle(&mut self) -> Option<Loc<()>>
fn consume_no_mangle(&mut self) -> Option<Loc<()>>
Removes #[no_mangle] from the attribute list and returns it if it was present