pub struct Namespace { /* private fields */ }
Expand description
A collection of loaded modules.
Implementations§
Source§impl Namespace
impl Namespace
Sourcepub fn load(&mut self, data: &str) -> Result<(), Error>
pub fn load(&mut self, data: &str) -> Result<(), Error>
Load a module from the text of its FIDL JSON file.
Sourcepub fn lookup(&self, name: &str) -> Result<LookupResult<'_>, Error>
pub fn lookup(&self, name: &str) -> Result<LookupResult<'_>, Error>
Look up a name in the loaded modules.
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnwindSafe for Namespace
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