pub trait Decoder {
// Required method
fn decode(state: &mut ReadingState) -> Result<()>;
}Available on crate feature
svg only.Expand description
type value decoder for vglang core types.
Required Methods§
Sourcefn decode(state: &mut ReadingState) -> Result<()>
fn decode(state: &mut ReadingState) -> Result<()>
Decode one type value from ReadingState and push result back into it.
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.