pub trait JsonVisitor {
type Output;
// Required methods
fn visit_null(self) -> Self::Output;
fn visit_bool(self, value: bool) -> Self::Output;
fn visit_number(self, value: &JsonNumber) -> Self::Output;
fn visit_string(self, value: &str) -> Self::Output;
fn visit_array<I: IntoIterator<Item: JsonVisit>>(
self,
items: I,
) -> Self::Output;
fn visit_object<E: IntoIterator<Item = (K, V)>, K: AsRef<str>, V: JsonVisit>(
self,
entries: E,
) -> Self::Output;
}Required Associated Types§
Required Methods§
fn visit_null(self) -> Self::Output
fn visit_bool(self, value: bool) -> Self::Output
fn visit_number(self, value: &JsonNumber) -> Self::Output
fn visit_string(self, value: &str) -> Self::Output
fn visit_array<I: IntoIterator<Item: JsonVisit>>(self, items: I) -> Self::Output
fn visit_object<E: IntoIterator<Item = (K, V)>, K: AsRef<str>, V: JsonVisit>( self, entries: E, ) -> Self::Output
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".