pub struct Index { /* private fields */ }Implementations§
Source§impl Index
impl Index
pub fn read<P: AsRef<Path>>(path: P) -> Option<Self>
pub fn new(files: Vec<File>) -> Self
pub fn all(&self) -> impl Iterator<Item = TypeDef<'_>> + '_
pub fn get( &self, namespace: &str, name: &str, ) -> impl Iterator<Item = TypeDef<'_>> + '_
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 Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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