pub trait EncodeChildren {
type Error;
// Required method
fn encode_with_config(
&self,
config: &Config,
) -> Result<Vec<XMLNode>, Self::Error>;
// Provided method
fn encode(&self) -> Result<Vec<XMLNode>, Self::Error> { ... }
}
Expand description
EncodeChildren allows SVD objects to be encoded as a list of XML nodes This is typically used to merge with an existing element.