Trait ts_rs::TypeVisitor

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

A visitor used to iterate over all dependencies or generics of a type. When an instance of TypeVisitor is passed to TS::visit_dependencies or TS::visit_generics, the TypeVisitor::visit method will be invoked for every dependency or generic parameter respectively.

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§