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.

Required Associated Types§

source

type Error

Encoding error

Required Methods§

source

fn encode_with_config( &self, config: &Config ) -> Result<Vec<XMLNode>, Self::Error>

Encode into XML/SVD children to merge with existing object with a custom configuration

Provided Methods§

source

fn encode(&self) -> Result<Vec<XMLNode>, Self::Error>

Encode into XML/SVD children to merge with existing object

Implementations on Foreign Types§

source§

impl EncodeChildren for RegisterProperties

Implementors§