Trait scale_decode::IntoVisitor
source · pub trait IntoVisitor {
type Visitor: for<'scale, 'info> Visitor<Value<'scale, 'info> = Self>;
// 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. If you implement this on some type and the Visitor
that you return has
an error type that converts into Error
, then you’ll also get 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.