pub struct Metadata { /* private fields */ }Implementations§
Source§impl Metadata
impl Metadata
pub fn scan(roots: &[PathBuf]) -> Metadata
Sourcepub fn is_loaded(&self) -> bool
pub fn is_loaded(&self) -> bool
False when no metadata was found at all, which has to silence every diagnostic: an unknown attribute and an unknown instance look the same.
pub fn attributes_of( &self, type_id: &str, ) -> Option<&BTreeMap<String, AttributeDefinition>>
pub fn attribute( &self, type_id: &str, attribute_id: &str, ) -> Option<&AttributeDefinition>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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