Trait scale_decode::IntoVisitor
source · pub trait IntoVisitor {
type Visitor: for<'scale, 'info> Visitor<Value<'scale, 'info> = Self, Error = Error>;
// Required method
fn into_visitor() -> Self::Visitor;
}Expand description
This trait can be implemented on any type that has an associated Visitor responsible for decoding
SCALE encoded bytes to it whose error type is Error. Anything that implements this trait gets a
DecodeAsType implementation for free.
Required Associated Types§
Required Methods§
sourcefn into_visitor() -> Self::Visitor
fn into_visitor() -> Self::Visitor
A means of obtaining this visitor.
Object Safety§
This trait is not object safe.