pub struct Api { /* private fields */ }Implementations§
Source§impl Api
impl Api
pub fn class(&self, qualified: &str) -> Option<&Class>
Sourcepub fn modules(&self) -> impl Iterator<Item = (String, &Class)>
pub fn modules(&self) -> impl Iterator<Item = (String, &Class)>
TopLevel classes are left out: they are globals, not modules.
Sourcepub fn classes(&self) -> impl Iterator<Item = (&str, &Class)>
pub fn classes(&self) -> impl Iterator<Item = (&str, &Class)>
TopLevel is left out: those are globals, not modules.
pub fn by_module(&self, path: &str) -> Option<&Class>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnsafeUnpin for Api
impl UnwindSafe for Api
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