pub trait Encode: Decode {
// Required method
fn encode(&self, ctx: &mut Context) -> Result<Node, EncodeError>;
}Expand description
Trait to encode the ast into KDL node
Required Methods§
Object Safety§
This trait is not object safe.
pub trait Encode: Decode {
// Required method
fn encode(&self, ctx: &mut Context) -> Result<Node, EncodeError>;
}Trait to encode the ast into KDL node