pub struct RecursiveTypeCollector<'a> { /* private fields */ }Expand description
A visitor that recursively collects all types referenced by a root type.
Unlike TypeCollectorVisitor, this properly traverses into nested structures.
Implementations§
Source§impl<'a> RecursiveTypeCollector<'a>
impl<'a> RecursiveTypeCollector<'a>
pub fn new(types: &'a dyn TypeDatabase) -> Self
pub fn with_max_depth(types: &'a dyn TypeDatabase, max_depth: usize) -> Self
Auto Trait Implementations§
impl<'a> Freeze for RecursiveTypeCollector<'a>
impl<'a> !RefUnwindSafe for RecursiveTypeCollector<'a>
impl<'a> !Send for RecursiveTypeCollector<'a>
impl<'a> !Sync for RecursiveTypeCollector<'a>
impl<'a> Unpin for RecursiveTypeCollector<'a>
impl<'a> UnsafeUnpin for RecursiveTypeCollector<'a>
impl<'a> !UnwindSafe for RecursiveTypeCollector<'a>
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