pub trait GeneratorVisitor {
    // Provided methods
    fn wants_file(&mut self, path: &Path) -> bool { ... }
    fn visit_module_comment(&mut self, comment: String) { ... }
    fn visit_const(&mut self, cnst: Const<'_>) { ... }
    fn visit_enum(&mut self, enm: Enum<'_>) { ... }
    fn visit_func(&mut self, func: Func<'_, '_>) { ... }
    fn visit_typedef(&mut self, typedef: Typedef<'_, '_>) { ... }
    fn visit_class(&mut self, class: Class<'_, '_>) { ... }
    fn visit_generated_type(&mut self, typ: GeneratedType<'_, '_>) { ... }
}
Expand description

Visitor of the different supported OpenCV entities, used in conjunction with Generator

Provided Methods§

source

fn wants_file(&mut self, path: &Path) -> bool

Check whether the visitor is interested in entities from the specified file

source

fn visit_module_comment(&mut self, comment: String)

Top-level module comment

source

fn visit_const(&mut self, cnst: Const<'_>)

Top-level constant

source

fn visit_enum(&mut self, enm: Enum<'_>)

Top-level enum

source

fn visit_func(&mut self, func: Func<'_, '_>)

Top-level function

source

fn visit_typedef(&mut self, typedef: Typedef<'_, '_>)

Top-level type alias

source

fn visit_class(&mut self, class: Class<'_, '_>)

Top-level class or an internal class of another class

source

fn visit_generated_type(&mut self, typ: GeneratedType<'_, '_>)

Dependent generated type like std::vector<Mat> or std::tuple<1, 2, 3>

Implementors§