pub struct Modules(pub BTreeMap<String, bool>);Tuple Fields§
§0: BTreeMap<String, bool>Implementations§
Source§impl Modules
impl Modules
Sourcepub fn attrs(&self, attrs: &mut Vec<Attribute>) -> Result<bool>
pub fn attrs(&self, attrs: &mut Vec<Attribute>) -> Result<bool>
Resolve module cfg/cfg_attr; leave unrelated Rust cfg to its existing checker.
pub fn function(&self, func: &mut ItemFn) -> Result<()>
pub fn items(&self, items: &mut Vec<Item>) -> Result<()>
pub fn component(&self, component: &mut ComponentItem) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Modules
impl RefUnwindSafe for Modules
impl Send for Modules
impl Sync for Modules
impl Unpin for Modules
impl UnsafeUnpin for Modules
impl UnwindSafe for Modules
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