pub struct TypeIndex { /* private fields */ }Implementations§
Source§impl TypeIndex
impl TypeIndex
pub fn read<P: AsRef<Path>>(path: P) -> Option<Self>
pub fn new(files: Vec<File>) -> Self
pub fn iter(&self) -> impl Iterator<Item = (&str, &str, TypeDef<'_>)> + '_
pub fn types(&self) -> impl Iterator<Item = TypeDef<'_>> + '_
pub fn get( &self, namespace: &str, name: &str, ) -> impl Iterator<Item = TypeDef<'_>> + '_
pub fn contains(&self, namespace: &str, name: &str) -> bool
pub fn expect(&self, namespace: &str, name: &str) -> TypeDef<'_>
pub fn nested(&self, ty: TypeDef<'_>) -> impl Iterator<Item = TypeDef<'_>> + '_
Auto Trait Implementations§
impl Freeze for TypeIndex
impl RefUnwindSafe for TypeIndex
impl Send for TypeIndex
impl Sync for TypeIndex
impl Unpin for TypeIndex
impl UnsafeUnpin for TypeIndex
impl UnwindSafe for TypeIndex
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