pub unsafe trait GenericTypeVisitable<V> {
// Required method
fn generic_visit_with(&self, visitor: &mut V);
}Expand description
This trait is implemented for every type that can be visited, providing the skeleton of the traversal.
§Safety
A manual implementation must visit every field.
Therefore, it is advised to instead derive this using the derive
macro located in rustc_macros.
Required Methods§
fn generic_visit_with(&self, visitor: &mut V)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".