pub struct Declarations {
pub namespaces: IndexMap<AbsolutePath, Namespace>,
pub declarations: IndexMap<AbsolutePath, Declaration>,
pub children: Vec<Vec<DeclarationIndex>>,
pub parents: Vec<Vec<DeclarationIndex>>,
}Fields§
§namespaces: IndexMap<AbsolutePath, Namespace>§declarations: IndexMap<AbsolutePath, Declaration>§children: Vec<Vec<DeclarationIndex>>§parents: Vec<Vec<DeclarationIndex>>Implementations§
Source§impl Declarations
impl Declarations
pub fn new( namespaces: IndexMap<AbsolutePath, Namespace>, declarations: IndexMap<AbsolutePath, Declaration>, ) -> Self
pub fn get_namespace( &self, index: NamespaceIndex, ) -> (&AbsolutePath, &Namespace)
pub fn get_root_namespace(&self) -> (NamespaceIndex, &Namespace)
pub fn get_declaration( &self, index: DeclarationIndex, ) -> (&AbsolutePath, &Declaration)
pub fn iter_declarations( &self, ) -> impl Iterator<Item = (DeclarationIndex, &AbsolutePath, &Declaration)>
pub fn format_type_kind(&self, type_: &TypeKind) -> Cow<'static, str>
pub fn format_simple_type(&self, type_: &SimpleType) -> Cow<'static, str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Declarations
impl RefUnwindSafe for Declarations
impl Send for Declarations
impl Sync for Declarations
impl Unpin for Declarations
impl UnwindSafe for Declarations
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