pub trait Context: Sized {
// Required method
fn visit<V: Visitor>(&self, visitor: V) -> V::Result;
}
Expand description
A trait for types that can behave as a static URI template expansion context.
This type is for use with UriTemplateStr::expand
method.
See the module documentation for usage.
Required Methods§
Sourcefn visit<V: Visitor>(&self, visitor: V) -> V::Result
fn visit<V: Visitor>(&self, visitor: V) -> V::Result
Visits a variable.
To get variable name, use Visitor::var_name()
.
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.