[][src]Trait svd_parser::parse::Parse

pub trait Parse {
    type Object;
    type Error;
    fn parse(elem: &Element) -> Result<Self::Object, Self::Error>;
}

Parse trait allows SVD objects to be parsed from XML elements.

Associated Types

type Object

Object returned by parse method

type Error

Parsing error

Loading content...

Required methods

fn parse(elem: &Element) -> Result<Self::Object, Self::Error>

Parse an XML/SVD element into it's corresponding Object.

Loading content...

Implementations on Foreign Types

impl Parse for u32[src]

type Object = u32

type Error = Error

Loading content...

Implementors

impl Parse for Access[src]

type Object = Access

type Error = Error

impl Parse for Cluster[src]

impl Parse for Endian[src]

type Object = Endian

type Error = Error

impl Parse for Field[src]

type Object = Field

type Error = Error

impl Parse for ModifiedWriteValues[src]

impl Parse for Register[src]

impl Parse for RegisterCluster[src]

impl Parse for Usage[src]

type Object = Usage

type Error = Error

impl Parse for WriteConstraint[src]

impl Parse for AddressBlock[src]

impl Parse for BitRange[src]

impl Parse for ClusterInfo[src]

impl Parse for Cpu[src]

type Object = Cpu

type Error = Error

impl Parse for Device[src]

type Object = Device

type Error = Error

fn parse(tree: &Element) -> Result<Device>[src]

Parses a SVD file

impl Parse for DimElement[src]

impl Parse for EnumeratedValue[src]

impl Parse for EnumeratedValues[src]

impl Parse for FieldInfo[src]

impl Parse for Interrupt[src]

impl Parse for Peripheral[src]

impl Parse for RegisterInfo[src]

impl Parse for RegisterProperties[src]

impl Parse for WriteConstraintRange[src]

impl Parse for BoolParse[src]

type Object = bool

type Error = Error

impl Parse for DimIndex[src]

type Object = Vec<String>

type Error = Error

Loading content...