Skip to main content

TypeVisitor

Trait TypeVisitor 

Source
pub trait TypeVisitor: Sized {
    // Required method
    fn visit<T: ExportableType + 'static + ?Sized>(&mut self);
}
Expand description

A visitor used to iterate over all dependencies or generics of a type.

Required Methods§

Source

fn visit<T: ExportableType + 'static + ?Sized>(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§